diff options
-rw-r--r-- | graphics/xpm/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/graphics/xpm/Makefile b/graphics/xpm/Makefile index 265fe1e43a0..a4e67e5e527 100644 --- a/graphics/xpm/Makefile +++ b/graphics/xpm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.47 2006/09/03 00:56:29 wiz Exp $ +# $NetBSD: Makefile,v 1.48 2006/09/09 20:32:40 schwarz Exp $ DISTNAME= xpm-3.4k PKGREVISION= 6 @@ -23,4 +23,23 @@ post-install: ${LN} -f libXpm.so.4.11 libXpm.so.4 .endif +.if !empty(LOWER_OPSYS:Mirix5*) +# needs snprintf() +. include "../../pkgtools/libnbcompat/buildlink3.mk" +IMAKEOPTS+= -DExtraLibraries=${BUILDLINK_LDADD.libnbcompat:Q} +IMAKEOPTS+= -DInstallCmd=${INSTALL:Q} + +post-configure: + ${MKDIR} ${WRKSRC}/usrlib + +post-install: + cd ${PREFIX}/lib && \ + ${MV} -f libXpm.so4.11 libXpm.so.4.11 && \ + ${RM} -f libXpm.so && \ + ${LN} -sf libXpm.so.4.11 libXpm.so && \ + ${RM} -f libXpm.so.4 && \ + ${LN} -sf libXpm.so.4.11 libXpm.so.4 + +.endif + .include "../../mk/bsd.pkg.mk" |