29d301ad20
- Regenerate config.h.in as well - Force updating of automake build scripts to fix some warnings about it Reported by: sbruno
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= privman
|
|
PORTVERSION= 0.9.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= devel security
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
|
COMMENT= Library that makes it easy for programs to use privilege separation
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake
|
|
AUTOMAKE_ARGS= -a -c -f
|
|
USES= libtool
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's|$$(PACKAGE).d|$$(PACKAGE)|g' \
|
|
-e 's|$$(sysconfdir)/$$(PACKAGE)|$$(DESTDIR)$$(sysconfdir)/$$(PACKAGE)|' \
|
|
${WRKSRC}/etc/Makefile.am
|
|
@${REINPLACE_CMD} -e \
|
|
'/^CFLAGS/s|-O2 -g|@CFLAGS@| ; \
|
|
/^CXXFLAGS/s|-O2 -g|@CXXFLAGS@| ; \
|
|
s|@PACKAGE@.d|@PACKAGE@| ; \
|
|
s|-lstdc++||' ${WRKSRC}/src/Makefile.am
|
|
@${REINPLACE_CMD} -e \
|
|
'/^CFLAGS/s|-O2 -g|@CFLAGS@|' ${WRKSRC}/tests/Makefile.am
|
|
# microb calls sqrt which requires -lm on some architectures
|
|
@${ECHO_CMD} 'microb_LDADD = $$(LDADD) -lm' >> ${WRKSRC}/tests/Makefile.am
|
|
|
|
.include <bsd.port.mk>
|