1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/misc/najitool/Makefile
Martin Wilke 303c63256d - Support CC/CFLAGS properly
- Support shebangfix USES macro
- Stage support

PR:		185509
Submitted by:	Ports Fury
2014-01-25 16:57:05 +00:00

30 lines
690 B
Makefile

# Created by: NECDET COKYAZICI <cokyazici@yahoo.co.uk>
# $FreeBSD$
PORTNAME= najitool
PORTVERSION= 0.8.4
DISTVERSIONSUFFIX= .src
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Generates, converts, and filters files
BUILD_DEPENDS= ${LOCALBASE}/lib/libnaji.a:${PORTSDIR}/devel/libnaji
PLIST_FILES= bin/najitool
post-patch:
@${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:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} najitool ${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.mk>