fcb7da800b
USE_TOOLS and any of "autoconf", "autoconf213", "automake" or "automake14". Also, we don't need to call the auto* tools via ${ACLOCAL}, ${AUTOCONF}, etc., since the tools framework takes care to symlink the correct tool to the correct name, so we can just use aclocal, autoconf, etc.
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2005/06/01 20:08:01 jlam Exp $
|
|
|
|
DISTNAME= openslp-1.2.1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openslp/}
|
|
|
|
MAINTAINER= jlam@NetBSD.org
|
|
HOMEPAGE= http://www.openslp.org/
|
|
COMMENT= Open-source implementation of the Service Location Protocol
|
|
|
|
# Needs pkgviews-enabled automake
|
|
# PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_TOOLS+= automake bison lex
|
|
USE_PKGINSTALL= yes
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
CONFIGURE_ARGS+= --enable-slpv2-security
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} DOC_DIR=${DOCDIR}
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
CONFS= slp.conf slp.reg slp.spi
|
|
CONF_FILES= # empty
|
|
.for FILE in ${CONFS}
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
.endfor
|
|
RCD_SCRIPTS= slpd
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKSRC} -name "CVS" -print | ${XARGS} ${RM} -rf
|
|
@${RM} -fr ${WRKSRC}/doc/html/UsersGuide/.xvpics
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && aclocal && autoheader && autoconf && \
|
|
${LOCALBASE}/bin/libtoolize && automake --add-missing
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/openslp
|
|
@cd ${WRKSRC}/doc && ${PAX} -rw . ${PREFIX}/share/doc/openslp
|
|
@${FIND} ${PREFIX}/share/doc/openslp | ${XARGS} ${CHOWN} \
|
|
${SHAREOWN}:${SHAREGRP}
|
|
@${FIND} ${PREFIX}/share/doc/openslp -type f | ${XARGS} ${CHMOD} \
|
|
${SHAREMODE}
|
|
@${FIND} ${PREFIX}/share/doc/openslp -type d | ${XARGS} ${CHMOD} \
|
|
${PKGDIRMODE}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|