summaryrefslogtreecommitdiff
path: root/package/.template/Makefile
blob: 12e618f34848de78ec4c129136fc1b242dffa408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

# always use tab spaces as separator, no spaces
PKG_NAME:=		@PKG@
PKG_VERSION:=		@VER@
PKG_RELEASE:=		1
PKG_MD5SUM:=		add md5sum of package here
PKG_DESCR:=		add short description
PKG_SECTION:=		add section
PKG_DEPENDS:=		add dependendant package names
PKG_BUILDDEP:=		add packages which need to be compiled
PKG_URL:=		add project url
PKG_SITES:=		add download url without package name
# alternatively use a pre-defined set of mirrors, see mk/mirrors.mk:
#PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=sub/path/}

# if more than one binary package is created, add symbol names of all here
# leave variable empty, when no binary package is created. You can set it
# to override PKG_NAME for the main binary package 
#PKG_SUBPKGS:=		PKG SUBPKG1 SUBPKG2
# you can add separate, build depends, run depends, section and description
# build time dependency for subpackage SUBPKG1, package dir
#PKGSB_SUBPKG1:=
# runtime dependency for subpackage SUBPKG1, package names
#PKGSS_SUBPKG1:=
# section for subpackage SUBPKG1
#PKGSC_SUBPKG1:=
# description for subpackage SUBPKG1
#PKGSD_SUBPKG1:=

# define your flavours for your package here, WITH_SSL f.e.
#PKG_FLAVOURS_PKGNAME:=		WITH_SSL
# flavour description
#PKGFD_WITH_SSL:=	enable SSL support
# flavour runtime dependency, package name
#PKGFS_WITH_SSL:=	libopenssl
# flavour build time dependency, package dir
#PKGFB_WITH_SSL:=	openssl

# define your choices for your package here, f.e. different SSL implementations
#PKG_CHOICES_PKGNAME:=	WITH_OPENSSL WITH_GNUTLS
# package description for each choice
#PKGCD_WITH_OPENSSL:=	SSL support via OpenSSL library
#PKGCD_WITH_GNUTLS:=	SSL support via GNUTLS library
# package build time dependencies
#PKGCB_WITH_OPENSSL:=	openssl
#PKGCB_WITH_GNUTLS:=	gnutls
# package runtime dependencies
#PKGCS_WITH_OPENSSL:=	libopenssl
#PKGCS_WITH_GNUTLS:=	libgnutls

# if downloaded package is not ending with .tar.gz use following
#DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tar.bz2

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,@UPKG@,@PKG@,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

#CONFIG_STYLE:=		manual
# use following to add ./configure options
#CONFIGURE_ARGS+=	--disable-foo
# overwrite any configure variables
#CONFIGURE_ENV+=	ac_cv_func_setpgrp_void=yes
#BUILD_STYLE:=		manual
#INSTALL_STYLE:=	manual

# please install all files and directories to the package dir
@PKG@-install:
	$(INSTALL_DIR) $(IDIR_@UPKG@)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/@PKG@ \
		$(IDIR_@UPKG@)/usr/bin

# please remove ALL above comments, before commiting
include ${TOPDIR}/mk/pkg-bottom.mk