1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Use OPTIONS helpers
This commit is contained in:
Antoine Brodin 2014-01-21 20:06:33 +00:00
parent bd537b5487
commit 2a6c55b1d2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340648

View File

@ -9,7 +9,7 @@ DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= A tool for GIF89a transparent option and interlace mode
COMMENT= Tool for GIF89a transparent option and interlace mode
NO_CDROM= Shareware
@ -25,24 +25,12 @@ MALLOCSIZE_DESC= Improve malloc size
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= COPYRIGHT README
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRETVALUE}
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-aa
.endif
.if ${PORT_OPTIONS:MMALLOCSIZE}
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ab
.endif
RETVALUE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-aa
MALLOCSIZE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ab
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/giftool ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
post-install:
@${CAT} ${PKGMESSAGE}
${INSTALL_PROGRAM} ${WRKSRC}/giftool ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>