pkgsrc/graphics/xart/patches/patch-ac

78 lines
2.6 KiB
Text

$NetBSD: patch-ac,v 1.7 2006/04/19 17:04:31 wiz Exp $
--- Local.config.orig 1998-04-01 02:58:05.000000000 +0200
+++ Local.config
@@ -62,8 +62,8 @@ XCOMM
#define HaveTIFF
#ifdef HaveTIFF
-TIFF_LIB = -L/usr/local/lib -ltiff
-TIFF_INCLUDE = -I/usr/local/include/tiff
+TIFF_LIB = -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -ltiff
+TIFF_INCLUDE = -I${LOCALBASE}/include
#endif
XCOMM If you have the JPEG library, make HaveJPEG defined
@@ -73,8 +73,8 @@ XCOMM includes are correct.
#define HaveJPEG
#ifdef HaveJPEG
-JPEG_LIB = -L/usr/local/lib -ljpeg
-JPEG_INCLUDE = -I/usr/local/include/jpeg
+JPEG_LIB = -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -ljpeg
+JPEG_INCLUDE = -I${LOCALBASE}/include
#endif
XCOMM If you have the PNG library, make HavePNG defined
@@ -84,8 +84,8 @@ XCOMM includes are correct.
#define HavePNG
#ifdef HavePNG
-PNG_LIB = -L/usr/local/lib -lpng -lz
-PNG_INCLUDE = -I/usr/local/include/png
+PNG_LIB = -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -lpng12 -lz -lm
+PNG_INCLUDE = -I${LOCALBASE}/include
#endif
XCOMM If you are running SunOS and get an error with the following undefined
@@ -102,11 +102,11 @@ XCOMM
XCOMM You must have the XPM library.
XCOMM Make sure the path name to the library is correct.
-XPM_LIB = -L/usr/X11R6/lib -lXpm
+XPM_LIB = -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lXpm
XCOMM Make sure this points to the location of the 'xpm.h' file.
-XPM_INCLUDE = -I/usr/X11R6/include/X11
+XPM_INCLUDE = -I${X11BASE}/include/X11
DEPENDFLAGS = -I./bitmaps
@@ -114,10 +114,10 @@ DEPENDFLAGS = -I./bitmaps
XCOMM Uncomment these lines and tailor to taste, if you don't like
XCOMM the default paths and man page extension.
XCOMM
-XCOMM BINDIR = /usr/local/bin
XCOMM MANDIR = /usr/local/man
XCOMM #undef ManSuffix
XCOMM #define ManSuffix 1
+BINDIR = ${PREFIX}/bin
XCOMM Add '-g' here if you want to include debugging information.
XCOMM Also add any optimizer flags etc. that you want.
@@ -138,9 +138,9 @@ XCOMM This should take care of everythin
#if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || \
defined(BSD386Architecture)
ARCH_DEFINES = -DHAVE_PARAM_H
-TIFF_INCLUDE = -I/usr/local/include
-TIFF_LIB = -L/usr/local/lib -ltiff
-JPEG_INCLUDE = -I/usr/local/include
-JPEG_LIB = -L/usr/local/lib -ljpeg
-XPM_INCLUDE = -I/usr/X11R6/include/X11
+TIFF_INCLUDE = -I${LOCALBASE}/include
+TIFF_LIB = -Wl,-R${LOCALBASE} -L${LOCALBASE}/lib -ltiff
+JPEG_INCLUDE = -I${LOCALBASE}/include
+JPEG_LIB = -Wl,-R${LOCALBASE} -L${LOCALBASE}/lib -ljpeg
+XPM_INCLUDE = -I${X11BASE}/include/X11
#endif