mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00: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
@ -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>
|
||||
|
@ -1 +0,0 @@
|
||||
bin/najitool
|
Loading…
Reference in New Issue
Block a user