summaryrefslogtreecommitdiff
path: root/x11/xforms/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>1999-09-24 04:37:31 +0000
committerjlam <jlam>1999-09-24 04:37:31 +0000
commitfc70837720e435aedc7bcd69c52eb3cdfdbe9809 (patch)
tree07a8d85eb30fd490f9e2f0a03cde75f73cfefe1d /x11/xforms/Makefile
parentae6b6017f0af3db75c72e16b8b3020c8b30cd287 (diff)
downloadpkgsrc-fc70837720e435aedc7bcd69c52eb3cdfdbe9809.tar.gz
Rebuild shared library with appropriate library version numbers from
the static library so our shared lib versioning semantics can be preserved. Suggested on tech-pkg.
Diffstat (limited to 'x11/xforms/Makefile')
-rw-r--r--x11/xforms/Makefile43
1 files changed, 26 insertions, 17 deletions
diff --git a/x11/xforms/Makefile b/x11/xforms/Makefile
index 45bb58e321c..f099d90b30e 100644
--- a/x11/xforms/Makefile
+++ b/x11/xforms/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 1999/09/23 05:29:24 jlam Exp $
+# $NetBSD: Makefile,v 1.20 1999/09/24 04:37:31 jlam Exp $
#
DISTNAME= bxform-088
@@ -12,20 +12,22 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://bragg.phys.uwm.edu/xforms/
.if (${MACHINE_ARCH} == "arm32")
-ARCH_SUBDIR= netBSD-arm
+ARCH_SUBDIR= netBSD-arm
.elif (${MACHINE_ARCH} == "i386")
-ARCH_SUBDIR= netBSD
+ARCH_SUBDIR= netBSD
.elif (${MACHINE_ARCH} == "ns32k")
-ARCH_SUBDIR= netBSD-pc532
+ARCH_SUBDIR= netBSD-pc532
.else
-ARCH_SUBDIR= netBSD-${MACHINE_ARCH}
+ARCH_SUBDIR= netBSD-${MACHINE_ARCH}
.endif
-ONLY_FOR_PLATFORM= *-*-arm32 *-*-i386 *-*-m68k *-*-ns32k *-*-sparc
+DIST_SUBDIR= xforms-${MACHINE_ARCH}
+
+ONLY_FOR_PLATFORM= NetBSD-*-arm32 NetBSD-*-i386 NetBSD-*-m68k \
+ NetBSD-*-ns32k NetBSD-*-sparc
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "NetBSD"
.if ${MACHINE_ARCH} == "i386" && ${OBJECT_FMT} == "ELF"
DISTNAME= bxform-088-ELF
.endif
@@ -33,29 +35,36 @@ DISTNAME= bxform-088-ELF
# XXX no ELF objects for sparc on NetBSD
IGNORE="is not available for ${MACHINE_PLATFORM} using the ELF object format."
.endif
-.endif
-
-DIST_SUBDIR= xforms-${MACHINE_ARCH}
## Define OBJMACHINE so WRKDIR is defined to be ${MACHINE_ARCH}-specific.
OBJMACHINE= yes
USE_X11BASE= yes
-NO_BUILD= yes
+USE_LIBTOOL= yes
+MAKEFILE= ${FILESDIR}/Makefile
+PLIST_SRC= ${PKGDIR}/PLIST.mi ${PKGDIR}/PLIST.shlib
-PLIST_SRC= ${PKGDIR}/PLIST.mi ${PKGSRC}/PLIST.shlib
+# When the XForms API changes and breaks binary-compatibility with the
+# previous version, increment the MAJOR by 1 and reset the MINOR to 0.
+#
+SHLIB_MAJOR= 0
+SHLIB_MINOR= 88
-post-patch:
- ${MV} ${WRKSRC}/mkconfig.h ${WRKSRC}/mkconfig.h.orig
- ${CP} ${FILESDIR}/mkconfig.h ${WRKSRC}
+MAKE_ENV+= SHLIB_MAJOR="${SHLIB_MAJOR}" SHLIB_MINOR="${SHLIB_MINOR}"
# XXX ELF linker tries to resolve libGL.so symbols when linking with
-# XXX shared libxforms, so for now, disable installation of shared lib.
+# XXX shared libxforms, so for now, remove the shared lib.
.if ${OBJECT_FMT} == "ELF"
PLIST_SRC= ${PKGDIR}/PLIST.mi
post-install:
- ${RM} ${PREFIX}/lib/libforms.so.0.88 ${PREFIX}/lib/libxforms.so.0.88
+ ${RM} -f \
+ ${PREFIX}/lib/libforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ ${PREFIX}/lib/libforms.so.${SHLIB_MAJOR} \
+ ${PREFIX}/lib/libforms.so \
+ ${PREFIX}/lib/libxforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ ${PREFIX}/lib/libxforms.so.${SHLIB_MAJOR} \
+ ${PREFIX}/lib/libxforms.so
.endif
.include "../../mk/bsd.pkg.mk"