426dcca3c4
ok sthen@
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.53 2014/03/23 21:05:25 brad Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= AFP file and print services for IP networks
|
|
|
|
DISTNAME= netatalk-2.2.5
|
|
REVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
HOMEPAGE= http://netatalk.sourceforge.net/
|
|
|
|
# GPLv2+ and BSD or similar
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += asn1 c com_err crypto db gcrypt gpg-error gssapi heimbase
|
|
WANTLIB += krb5 pthread roken rpcsvc wind
|
|
|
|
MODULES= devel/gettext
|
|
LIB_DEPENDS= databases/db/v4 \
|
|
security/libgcrypt
|
|
|
|
USE_GROFF= Yes
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --disable-cups \
|
|
--disable-overwrite \
|
|
--disable-tcp-wrappers \
|
|
--enable-krbV-uam \
|
|
--with-ssl-dir=/usr \
|
|
--with-uams-path=${PREFIX}/lib/netatalk/uams \
|
|
--without-ldap \
|
|
--without-pam
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
FLAVORS= avahi
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mavahi}
|
|
WANTLIB+= avahi-client avahi-common dbus-1
|
|
LIB_DEPENDS+= net/avahi
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-zeroconf
|
|
.endif
|
|
|
|
NO_TEST= Yes
|
|
|
|
post-build:
|
|
@cd ${WRKSRC}/config; make afpd.conf AppleVolumes.default
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netatalk
|
|
${INSTALL_DATA} ${WRKSRC}/doc/README.AppleTalk \
|
|
${PREFIX}/share/doc/netatalk
|
|
mv ${WRKINST}/etc/netatalk ${PREFIX}/share/examples/
|
|
@find ${PREFIX}/lib/netatalk/uams -name '*.a' -print | xargs rm
|
|
@find ${PREFIX}/lib/netatalk/uams -name '*.la' -print | xargs rm
|
|
|
|
.include <bsd.port.mk>
|