freebsd-ports/graphics/php5-swfed/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

47 lines
1.4 KiB
Makefile

# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
# $FreeBSD$
PORTNAME= swfed
PORTVERSION= 0.62
PORTREVISION= 3
CATEGORIES= graphics www
MASTER_SITES= SFJP/${PORTNAME}/60548
PKGNAMEPREFIX= php5-
MAINTAINER= yoya@awm.jp
COMMENT= PHP extension to edit SWF file
LICENSE= PHP301
BUILD_DEPENDS= re2c:${PORTSDIR}/devel/re2c
LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib \
libpng.so:${PORTSDIR}/graphics/png
DEFAULT_PHP_VER= 5
USE_PHP= zlib
USE_PHPEXT= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFIGURE_ARGS= --with-png-dir=${LOCALBASE} --with-gif-dir=${LOCALBASE}
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
PORTDOCS= readme.txt
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sample/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${WWWDIR}
${CP} -R ${WRKDIR}/${DISTNAME}/www/ ${STAGEDIR}${WWWDIR}
x-generate-plist: stage
${FIND} ${STAGEDIR}${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${STAGEDIR}${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
${FIND} ${STAGEDIR}${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${STAGEDIR}${WWWDIR},@dirrm %%WWWDIR%%,g' >> pkg-plist.new
${ECHO} '@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%WWWDIR%%' >> pkg-plist.new
.include <bsd.port.mk>