1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Convert to new LIB_DEPENDS format
This commit is contained in:
Pawel Pekala 2014-04-28 15:47:00 +00:00
parent e5a6ad5da6
commit c50a8db396
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352513

View File

@ -11,19 +11,18 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Shows details of a ppm file
LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm
LIB_DEPENDS= libnetpbm.so:${PORTSDIR}/graphics/netpbm
PLIST_FILES= bin/${PORTNAME}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} 's|min(|MIN(|;s|max(|MAX(|' ${WRKSRC}/pi.c
@${REINPLACE_CMD} 's|-O2||;/^LDFLAGS=/s|=|+=|;\
/^DEBUG=/d' ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>