Add staging support

Convert to new LIB_DEPENDS framework
Define LICENSE
This commit is contained in:
Steven Kreuzer 2014-06-19 12:57:19 +00:00
parent e811fe34c0
commit 6cb35f638b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358400

View file

@ -11,9 +11,11 @@ PKGNAMEPREFIX= jpilot-
MAINTAINER= sklauder@trimind.de
COMMENT= JPilot plugin to download photos and videos
LICENSE= GPLv2
RUN_DEPENDS= jpilot:${PORTSDIR}/palm/jpilot
BUILD_DEPENDS= jpilot:${PORTSDIR}/palm/jpilot
LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm
LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm
GNU_CONFIGURE= yes
@ -22,16 +24,17 @@ PORTDOCS= README AUTHORS
PLIST_FILES= lib/jpilot/plugins/libpicsnvideos.la \
lib/jpilot/plugins/libpicsnvideos.so
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
. for FILE in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
. endfor
.endif