mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Support CC/CFLAGS properly
- Support shebangfix USES macro - Stage support PR: 185509 Submitted by: Ports Fury
This commit is contained in:
parent
615f8cad47
commit
303c63256d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341058
2 changed files with 10 additions and 5 deletions
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
PORTNAME= najitool
|
PORTNAME= najitool
|
||||||
PORTVERSION= 0.8.4
|
PORTVERSION= 0.8.4
|
||||||
|
DISTVERSIONSUFFIX= .src
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= misc
|
CATEGORIES= misc
|
||||||
MASTER_SITES= SF
|
MASTER_SITES= SF
|
||||||
|
|
||||||
|
@ -11,13 +13,17 @@ COMMENT= Generates, converts, and filters files
|
||||||
|
|
||||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libnaji.a:${PORTSDIR}/devel/libnaji
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libnaji.a:${PORTSDIR}/devel/libnaji
|
||||||
|
|
||||||
DISTVERSIONSUFFIX= .src
|
PLIST_FILES= bin/najitool
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-patch:
|
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:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/najitool ${PREFIX}/bin
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} najitool ${STAGEDIR}${PREFIX}/bin)
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
bin/najitool
|
|
Loading…
Add table
Reference in a new issue