freebsd-ports/security/libgringotts/Makefile
Dmitry Marakasov f4ffa61402 - Switch to options helpers
- Use %%DOCSDIR%%
2015-09-03 12:56:30 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Anders Nordby <anders@FreeBSD.org>
# $FreeBSD$
PORTNAME= libgringotts
PORTVERSION= 1.2.1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= BERLIOS/gringotts
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for encapsulating/safekeeping data in encrypted/compressed form
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libmcrypt.so:${PORTSDIR}/security/libmcrypt \
libmhash.so:${PORTSDIR}/security/mhash
USES= tar:bzip2 libtool
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-pkg-config-files=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e "s|md5sum|md5|g" ${WRKSRC}/Makefile.in
pre-install-DOCS-on:
@${REINPLACE_CMD} -E "s|^(libgringottsdocdir =).*|\1 $$\(datadir\)/doc/libgringotts|" ${WRKSRC}/docs/Makefile ${WRKSRC}/Makefile
pre-install-DOCS-off:
@${REINPLACE_CMD} -E -e "s|^(SUBDIRS =.*) docs|\1|" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -E -e "s|^(install-data-am:.*)install-libgringottsdocDATA|\1|" ${WRKSRC}/Makefile
.include <bsd.port.mk>