summaryrefslogtreecommitdiff
path: root/mbone/sdr/Makefile
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2000-03-15 07:17:39 +0000
committerbouyer <bouyer@pkgsrc.org>2000-03-15 07:17:39 +0000
commit3be524928e7e042367e775a75337cef5538d220b (patch)
treed440cc3308d0a185f433918a9216e59bec5da42b /mbone/sdr/Makefile
parentc91fbd39b20bbe89f270841f4615970c5dcb4177 (diff)
downloadpkgsrc-3be524928e7e042367e775a75337cef5538d220b.tar.gz
Make it compile on solaris.
Diffstat (limited to 'mbone/sdr/Makefile')
-rw-r--r--mbone/sdr/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/mbone/sdr/Makefile b/mbone/sdr/Makefile
index e4f5d6eca75..e731182c515 100644
--- a/mbone/sdr/Makefile
+++ b/mbone/sdr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 1999/10/28 02:40:23 hubertf Exp $
+# $NetBSD: Makefile,v 1.25 2000/03/15 07:17:39 bouyer Exp $
#
DISTNAME= sdr-2.7
@@ -15,21 +15,33 @@ USE_GMAKE= yes
RESTRICTED= "Uses encryption"
+.include "../../mk/bsd.prefs.mk"
+
.if exists(/usr/include/sys/inttypes.h)
EXTRA_FLAGS+= -DHAVE_SYS_INTTYPES_H
MAKE_FLAGS+= EXTRA_FLAGS="${EXTRA_FLAGS}"
.endif
+.if ${OPSYS} == "SunOS"
+SYSDIR= solaris
+.else
+SYSDIR= netbsd
+.endif
+
do-configure:
cd ${WRKSRC}/common ; ${SH} ./configure
+.if ${OPSYS} == "SunOS"
+ ${CAT} ${WRKSRC}/sdr/solaris/Makefile.solaris ${WRKSRC}/sdr/src/Makefile.template > ${WRKSRC}/sdr/solaris/Makefile
+.else
${MKDIR} ${WRKSRC}/sdr/netbsd
${CAT} ${FILESDIR}/Makefile.netbsd ${WRKSRC}/sdr/src/Makefile.template > ${WRKSRC}/sdr/netbsd/Makefile
+.endif
do-build:
cd ${WRKSRC}/common ; ${GMAKE}
- cd ${WRKSRC}/sdr/netbsd ; ${GMAKE}
+ cd ${WRKSRC}/sdr/${SYSDIR} ; ${GMAKE}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sdr/netbsd/sdr ${PREFIX}/bin/sdr
+ ${INSTALL_PROGRAM} ${WRKSRC}/sdr/${SYSDIR}/sdr ${PREFIX}/bin/sdr
.include "../../mk/bsd.pkg.mk"