- Change master sites SF --> GH, recreate tarball - Change maintainer email gmx.ch --> FreeBSD.org - Use the new format for LIB_DEPENDS - USES pathfix pkgconfig - Add dependency for aclocal - Add DOCS Option, change and remove from pkg-plist - Use pathfix and REINPLACE_CMD instead of simple patches - Change WWW Approved by: wg/pawel (mentors)
67 lines
1.4 KiB
Makefile
67 lines
1.4 KiB
Makefile
# Created by: nork@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ampasCTL
|
|
PORTVERSION= 1.4.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics devel
|
|
DISTNAME= ctl-${DISTVERSION}
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Color Transformation Language interpreter
|
|
|
|
LICENSE= BSD
|
|
|
|
LIB_DEPENDS= libImath.so:${PORTSDIR}/graphics/ilmbase
|
|
|
|
WRKSRC= ${WRKDIR}/ampas-CTL-${GH_COMMIT}/CTL
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ampas
|
|
GH_PROJECT= CTL
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
GH_COMMIT= ca179ca
|
|
|
|
USES= pathfix pkgconfig
|
|
PATHFIX_MAKEFILEIN= Makefile.am
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= aclocal libtool
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
DOC_FILES1= AUTHORS ChangeLog NEWS README
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
DOC_FILES2= CtlManual.pdf CtlManual.doc
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
pre-configure:
|
|
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./bootstrap)
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|CtlManual.pdf CtlManual.doc||' \
|
|
${WRKSRC}/doc/Makefile.am
|
|
|
|
test check: build
|
|
@(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
pre-install: test
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
|
|
@${MKDIR} ${DOCSDIR2}
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|