Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # $OpenBSD: Makefile,v 1.12 2017/03/16 16:02:52 ajacoutot Exp $
  2. COMMENT= AFP file and print services for IP networks
  3. V= 3.1.11
  4. DISTNAME= netatalk-${V}
  5. EXTRACT_SUFX= .tar.bz2
  6. PKGSPEC= netatalk->=3,<4
  7. SHARED_LIBS += atalk 16.0 # 16.0
  8. CATEGORIES= net
  9. HOMEPAGE= http://netatalk.sourceforge.net/
  10. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  11. # GPLv2+
  12. PERMIT_PACKAGE_CDROM= Yes
  13. WANTLIB += avahi-client avahi-common c crypto db dbus-1 dbus-glib-1
  14. WANTLIB += event_core event_extra ffi gcrypt gio-2.0 glib-2.0
  15. WANTLIB += gmodule-2.0 gobject-2.0 gpg-error gthread-2.0 iconv
  16. WANTLIB += intl pcre pthread tdb z
  17. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/}
  18. MODULES= lang/python
  19. MODPY_BUILDDEP= No
  20. MODPY_ADJ_FILES= contrib/shell_utils/afpstats
  21. LIB_DEPENDS= databases/db/v4 \
  22. databases/tdb \
  23. devel/libevent2 \
  24. net/avahi \
  25. security/libgcrypt \
  26. x11/dbus-glib
  27. # afpstats(1)
  28. RUN_DEPENDS += x11/dbus-python
  29. LIBTOOL_FLAGS= --tag=disable-static
  30. CONFIGURE_STYLE= gnu
  31. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  32. LDFLAGS="-L${LOCALBASE}/lib" \
  33. ac_cv_path_MYSQL_CONFIG=
  34. CONFIGURE_ARGS= --disable-cups \
  35. --with-pkgconfdir=${SYSCONFDIR}/netatalk \
  36. --with-ssl-dir=/usr \
  37. --with-tdb=${LOCALBASE} \
  38. --with-libevent-header=${LOCALBASE}/include \
  39. --with-libevent-lib=${LOCALBASE}/lib \
  40. --without-ldap \
  41. --without-pam
  42. # XXX does not build
  43. CONFIGURE_ARGS += --disable-quota
  44. FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/netatalk \
  45. pkgconfdir=${PREFIX}/share/examples/netatalk/netatalk \
  46. localstatedir=${PREFIX}/share/examples/netatalk/var
  47. post-install:
  48. rm ${PREFIX}/lib/netatalk/*.la
  49. .include <bsd.port.mk>