diff options
author | marcus <marcus@FreeBSD.org> | 2014-04-21 05:41:41 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2014-04-21 05:41:41 +0800 |
commit | 78e18a0c2e942b87d28c5e0ea4ad70537e0f1416 (patch) | |
tree | 5935e3dc5bc4e40d9fee769b386614881c7eb79e /net | |
parent | 56e8ee5e214a04ecc44395cfd1322241c5364486 (diff) | |
download | freebsd-ports-gnome-78e18a0c2e942b87d28c5e0ea4ad70537e0f1416.tar.gz freebsd-ports-gnome-78e18a0c2e942b87d28c5e0ea4ad70537e0f1416.tar.zst freebsd-ports-gnome-78e18a0c2e942b87d28c5e0ea4ad70537e0f1416.zip |
Switch to using an exists() check on netatalk/ddp.h.
Suggested by: danfe
Diffstat (limited to 'net')
-rw-r--r-- | net/netatalk/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile index 87f05a0605ac..eac2cb5d1d94 100644 --- a/net/netatalk/Makefile +++ b/net/netatalk/Makefile @@ -26,9 +26,7 @@ CONFIGURE_ARGS+= --with-tcp-wrappers \ --with-uams-path=${PREFIX}/libexec/netatalk-uams \ --with-bdb=${LOCALBASE} -OPTIONS_DEFINE= APPLETALK SRVLOC PAM TIMELORD KRB5 ZEROCONF LDAP SENDFILE -OPTIONS_DEFAULT=APPLETALK -APPLETALK_DESC= AppleTalk protocol support (where supported) +OPTIONS_DEFINE= SRVLOC PAM TIMELORD KRB5 ZEROCONF LDAP SENDFILE SRVLOC_DESC= Service Location Protocol support TIMELORD_DESC= Timelord network time service KRB5_DESC= Kerberos V UAM @@ -41,6 +39,12 @@ LINKS= unbin unhex unsingle hqx2bin single2bin macbinary \ CONFLICTS= bigloo-2.* cap-6.0.* tct-1.* netatalk-1* yudit-[0-9]* +.if exists(/usr/include/netatalk/ddp.h) +OPTIONS_DEFINE+=APPLETALK +OPTIONS_DEFAULT=APPLETALK +APPLETALK_DESC= AppleTalk protocol support +.endif + .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MKRB5} @@ -50,7 +54,7 @@ PLIST_SUB+= NETATALKKRB5="" PLIST_SUB+= NETATALKKRB5="@comment " .endif -.if ${OSVERSION} < 1100013 && ${PORT_OPTIONS:MAPPLETALK} +.if ${PORT_OPTIONS:MAPPLETALK} CONFIGURE_ARGS+= --enable-ddp PLIST_SUB+= APPLETALK="" FILES+= atalkd.conf papd.conf |