summaryrefslogtreecommitdiff
path: root/dns/hesiod/Makefile
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>1998-10-07 19:34:46 +0000
committerJacques Vidrine <nectar@FreeBSD.org>1998-10-07 19:34:46 +0000
commitde2c0f5c6dde369d1823bdafb59f1221d0e69377 (patch)
treeab2167ea3878982a9214563e1c64906ee2f6def3 /dns/hesiod/Makefile
parentUpdate to ELF and v1.0r7. This version supports only one type of (diff)
Build and install a shared library version, too.
Notes
Notes: svn path=/head/; revision=13717
Diffstat (limited to 'dns/hesiod/Makefile')
-rw-r--r--dns/hesiod/Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/dns/hesiod/Makefile b/dns/hesiod/Makefile
index 1811cdec3a57..62e9db4ddeac 100644
--- a/dns/hesiod/Makefile
+++ b/dns/hesiod/Makefile
@@ -3,14 +3,14 @@
# Date created: 6/11/1998
# Whom: n@nectar.com
#
-# $Id: Makefile,v 1.1.1.1 1998/07/04 19:51:53 steve Exp $
+# $Id: Makefile,v 1.2 1998/07/05 13:09:46 asami Exp $
#
DISTNAME= hesiod-3.0.2
CATEGORIES= net
MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/
-MAINTAINER= n@nectar.com
+MAINTAINER= nectar@FreeBSD.ORG
MAN1= hesinfo.1
MAN3= hesiod.3 hesiod_end.3 hesiod_free_list.3 \
@@ -23,4 +23,23 @@ MAN5= hesiod.conf.5
GNU_CONFIGURE= YES
+post-install:
+ ${SETENV} OBJFORMAT="${PORTOBJFORMAT}" ${LDCONFIG} -m ${PREFIX}/lib
+
.include <bsd.port.mk>
+
+.if !defined(PORTOBJFORMAT) # bsd.port.mk must be out of date
+PORTOBJFORMAT= aout
+CONFIGURE_ENV+= PORTOBJFORMAT="${PORTOBJFORMAT}"
+MAKE_ENV+= PORTOBJFORMAT="${PORTOBJFORMAT}"
+.endif
+
+.if ${PORTOBJFORMAT} == elf
+SHLIB=libhesiod.so.3
+CONFIGURE_ENV+= LDFLAGS="-shared -Wl,-soname,${SHLIB}"
+.else
+SHLIB=libhesiod.so.3.0
+CONFIGURE_ENV+= LDFLAGS="-shared"
+.endif
+
+MAKE_ENV+= SHLIB="${SHLIB}"