diff options
author | miwi <miwi@FreeBSD.org> | 2014-01-26 00:57:05 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-01-26 00:57:05 +0800 |
commit | 14c573d6f3a9fe36342d46f20de54ac530c236f9 (patch) | |
tree | 80d0c29db6e113918910622dbb95c22f456d45f8 /misc | |
parent | 3ababe2cb04475427009a5534baacc1df87f849b (diff) | |
download | freebsd-ports-gnome-14c573d6f3a9fe36342d46f20de54ac530c236f9.tar.gz freebsd-ports-gnome-14c573d6f3a9fe36342d46f20de54ac530c236f9.tar.zst freebsd-ports-gnome-14c573d6f3a9fe36342d46f20de54ac530c236f9.zip |
- Support CC/CFLAGS properly
- Support shebangfix USES macro
- Stage support
PR: 185509
Submitted by: Ports Fury
Diffstat (limited to 'misc')
-rw-r--r-- | misc/najitool/Makefile | 14 | ||||
-rw-r--r-- | misc/najitool/pkg-plist | 1 |
2 files changed, 10 insertions, 5 deletions
diff --git a/misc/najitool/Makefile b/misc/najitool/Makefile index a2cb572fdf3c..ec285ff78c00 100644 --- a/misc/najitool/Makefile +++ b/misc/najitool/Makefile @@ -3,6 +3,8 @@ PORTNAME= najitool PORTVERSION= 0.8.4 +DISTVERSIONSUFFIX= .src +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= SF @@ -11,13 +13,17 @@ COMMENT= Generates, converts, and filters files BUILD_DEPENDS= ${LOCALBASE}/lib/libnaji.a:${PORTSDIR}/devel/libnaji -DISTVERSIONSUFFIX= .src +PLIST_FILES= bin/najitool -NO_STAGE= yes post-patch: - ${REINPLACE_CMD} -e 's|cflags =|cflags = -I${LOCALBASE}/include|; s|libnaji.a|${LOCALBASE}/lib/libnaji.a|' ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e \ + '/^cc/s|=.*|= $${CC}| ; \ + /^ld/s|=.*|= $${CC}| ; \ + /^cflags/s|=.*|= $${CFLAGS} -I$${LOCALBASE}/include| ; \ + s| libnaji.a| $${LOCALBASE}/lib/libnaji.a|' \ + ${WRKSRC}/${MAKEFILE} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/najitool ${PREFIX}/bin + (cd ${WRKSRC} && ${INSTALL_PROGRAM} najitool ${STAGEDIR}${PREFIX}/bin) .include <bsd.port.mk> diff --git a/misc/najitool/pkg-plist b/misc/najitool/pkg-plist deleted file mode 100644 index 3f4df484b3fa..000000000000 --- a/misc/najitool/pkg-plist +++ /dev/null @@ -1 +0,0 @@ -bin/najitool |