diff --git a/misc/xnc/Makefile b/misc/xnc/Makefile index 547596c4568..c4fdff53ac8 100644 --- a/misc/xnc/Makefile +++ b/misc/xnc/Makefile @@ -1,9 +1,12 @@ -# $OpenBSD: Makefile,v 1.13 2004/12/22 11:50:30 alek Exp $ +# $OpenBSD: Makefile,v 1.14 2005/12/30 23:25:56 steven Exp $ COMMENT= "filemanager for X Window" DISTNAME= xnc-4.4.7 -DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX} +DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX} +SHARED_LIBS= xncaqua 0.0 \ + xncfive 0.0 + CATEGORIES= misc x11 MAINTAINER= Reinhard J. Sammer @@ -32,6 +35,10 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/l LIBS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --with-x +FAKE_FLAGS= LIBxncaqua_VERSION=${LIBxncaqua_VERSION} \ + LIBxncfive_VERSION=${LIBxncfive_VERSION} \ + DESTDIR=${WRKINST} + XNLAUNCHFILES= .launch.menu .xnlaunch.ini graphs.gif ives.gif kill.gif \ map.gif netscape.gif term.gif tnet.gif diff --git a/misc/xnc/patches/patch-Makefile_in b/misc/xnc/patches/patch-Makefile_in index ea3404da7e4..5ecc92e7e4e 100644 --- a/misc/xnc/patches/patch-Makefile_in +++ b/misc/xnc/patches/patch-Makefile_in @@ -1,6 +1,6 @@ -$OpenBSD: patch-Makefile_in,v 1.5 2003/03/05 22:48:08 pvalchev Exp $ ---- Makefile.in.orig Wed Mar 27 05:16:28 2002 -+++ Makefile.in Wed Mar 5 15:30:36 2003 +$OpenBSD: patch-Makefile_in,v 1.6 2005/12/30 23:25:56 steven Exp $ +--- Makefile.in.orig Wed Mar 27 13:16:28 2002 ++++ Makefile.in Sat Dec 31 00:15:44 2005 @@ -268,19 +268,19 @@ install: install-$(PLUGINS) $(INSM) ./yo-man/*.1 $(INSTMAN)/man1 $(INS) ./ives/ives $(INSTDIR) @@ -21,8 +21,8 @@ $OpenBSD: patch-Makefile_in,v 1.5 2003/03/05 22:48:08 pvalchev Exp $ mkdir -p $(INSTPLUG) - $(INS) ./plugins/five/libxncfive.so $(INSTPLUG) - $(INS) ./plugins/aqua/libxncaqua.so $(INSTPLUG) -+ $(INS) ./plugins/five/libxncfive.so $(INSTPLUG)/libxncfive.so.0.0 -+ $(INS) ./plugins/aqua/libxncaqua.so $(INSTPLUG)/libxncaqua.so.0.0 ++ $(INS) ./plugins/five/libxncfive.so $(INSTPLUG)/libxncfive.so.$(LIBxncfive_VERSION) ++ $(INS) ./plugins/aqua/libxncaqua.so $(INSTPLUG)/libxncaqua.so.$(LIBxncaqua_VERSION) install-: @echo "Skipping..." diff --git a/misc/xnc/patches/patch-configure_in b/misc/xnc/patches/patch-configure_in index 45ae591cdf0..547d25a2e28 100644 --- a/misc/xnc/patches/patch-configure_in +++ b/misc/xnc/patches/patch-configure_in @@ -1,7 +1,7 @@ -$OpenBSD: patch-configure_in,v 1.1 2003/12/26 19:34:23 naddy Exp $ ---- configure.in.orig 2002-03-27 16:59:52.000000000 +0100 -+++ configure.in 2003-12-26 18:25:42.000000000 +0100 -@@ -198,20 +198,6 @@ AC_CHECK_LIB(jpeg, jpeg_read_scanlines, +$OpenBSD: patch-configure_in,v 1.2 2005/12/30 23:25:56 steven Exp $ +--- configure.in.orig Wed Mar 27 16:59:52 2002 ++++ configure.in Sat Dec 31 00:06:10 2005 +@@ -198,21 +198,7 @@ AC_CHECK_LIB(jpeg, jpeg_read_scanlines, need_jpeg="yes" ]) @@ -18,14 +18,17 @@ $OpenBSD: patch-configure_in,v 1.1 2003/12/26 19:34:23 naddy Exp $ - echo "TIFFDEFINE=" >>make.conf - echo "TIFFINC=" >> make.conf -]) -- +- AC_CHECK_LIB(z, inflate, [ -@@ -227,6 +213,21 @@ AC_CHECK_LIB(z, inflate, + echo "ZINC=" >>make.conf +@@ -225,6 +211,21 @@ AC_CHECK_LIB(z, inflate, + echo "ZLIB=`pwd`/zlib/libz.a" >>make.conf + echo "ZDEP=../zlib/libz.a" >>make.conf ]) - - ++ ++ +AC_CHECK_LIB(tiff, TIFFGetField, +[ + out_lib="$out_lib -ltiff -ljpeg" @@ -39,8 +42,6 @@ $OpenBSD: patch-configure_in,v 1.1 2003/12/26 19:34:23 naddy Exp $ + echo "TIFFDEFINE=" >>make.conf + echo "TIFFINC=" >> make.conf +], -ljpeg -lz) -+ -+ + + AC_CHECK_LIB(png, png_get_valid, - [ - echo "PNGDEFINE=-DLOAD_PNG" >>make.conf diff --git a/misc/xnc/pkg/PFRAG.shared b/misc/xnc/pkg/PFRAG.shared index ed562ea0184..1873bdea917 100644 --- a/misc/xnc/pkg/PFRAG.shared +++ b/misc/xnc/pkg/PFRAG.shared @@ -1,3 +1,3 @@ -@comment $OpenBSD: PFRAG.shared,v 1.3 2004/09/15 17:54:17 espie Exp $ -@lib lib/xnc/libxncaqua.so.0.0 -@lib lib/xnc/libxncfive.so.0.0 +@comment $OpenBSD: PFRAG.shared,v 1.4 2005/12/30 23:25:57 steven Exp $ +@lib lib/xnc/libxncaqua.so.${LIBxncaqua_VERSION} +@lib lib/xnc/libxncfive.so.${LIBxncfive_VERSION}