mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
104 lines
2.5 KiB
Plaintext
104 lines
2.5 KiB
Plaintext
--- Makefile.linux.orig Fri Oct 14 00:57:43 1994
|
|
+++ Makefile.linux Sun Mar 18 08:09:35 2001
|
|
@@ -24,12 +24,12 @@
|
|
#
|
|
# Uncomment next line if you are using other compiler (e.g. gcc)
|
|
#
|
|
-CC = gcc
|
|
+CC?= gcc
|
|
|
|
#
|
|
# Compiler options ( only C-O-M-P-I-L-E-R, not LUG options ).
|
|
#
|
|
-COPTS = -O2
|
|
+COPTS = ${CFLAGS}
|
|
|
|
#
|
|
# Location of LUG header files.
|
|
@@ -40,7 +40,7 @@
|
|
#
|
|
# Where lug library will live
|
|
#
|
|
-LIBLUGDEST = /usr/local/lib
|
|
+LIBLUGDEST = ${PREFIX}/lib
|
|
|
|
#
|
|
# If you have installed the Utah Raster Toolkit library define
|
|
@@ -52,10 +52,10 @@
|
|
#
|
|
# , or leave undefined if you don't have it.
|
|
#
|
|
-URTINC = -I/usr/local/include/urt
|
|
-URTLIB = /usr/local/lib/librle.a
|
|
+#URTINC = -I/usr/local/include/urt
|
|
+#URTLIB = /usr/local/lib/librle.a
|
|
#URTLIB = -L/usr/local/lib -lrle
|
|
-URTDEF = -DiRLE
|
|
+#URTDEF = -DiRLE
|
|
|
|
#
|
|
# If you have installed the Sam Leffler's TIFF library define
|
|
@@ -67,9 +67,9 @@
|
|
#
|
|
# , or leave undefined if you don't have it.
|
|
#
|
|
-TIFFINC = -I/usr/local/include/tiff
|
|
-TIFFLIB = /usr/local/lib/libtiff.a
|
|
-#TIFFLIB = -L/usr/local/lib -ltiff
|
|
+#TIFFINC = -I/usr/local/include/tiff
|
|
+#TIFFLIB = /usr/local/lib/libtiff.a
|
|
+TIFFLIB = -L${PREFIX}/lib -ltiff
|
|
TIFFDEF = -DiTIFF
|
|
|
|
#
|
|
@@ -87,9 +87,9 @@
|
|
#
|
|
# , or leave undefined if you don't have it.
|
|
#
|
|
-JPEGINC = -I/usr/local/include/jpeg
|
|
-JPEGLIB = /usr/local/lib/libjpeg.a
|
|
-#JPEGLIB = -L/usr/local/lib -ljpeg
|
|
+JPEGINC = -I${PREFIX}/include
|
|
+#JPEGLIB = /usr/local/lib/libjpeg.a
|
|
+JPEGLIB = -L${PREFIX}/lib -ljpeg
|
|
JPEGDEF = -DiJPEGNEW
|
|
|
|
#
|
|
@@ -127,15 +127,15 @@
|
|
# VIEWLIB = -lgl_s -lvfr
|
|
# VIEWINC = -I/usr/include/gl -I/usr/video/vfr/src/inc
|
|
#
|
|
-VIEWINC = -I/usr/X11/include
|
|
-VIEWLIB = -L/usr/X11/lib -lX11
|
|
-VIEWDEF = -DiX11 -DiLINUX
|
|
+VIEWINC = -I${LOCALBASE}/include
|
|
+VIEWLIB = -L${LOCALBASE}/lib -lX11
|
|
+VIEWDEF = -DiX11
|
|
|
|
#
|
|
# Final includes ( don't touch this ! ).
|
|
#
|
|
INCS = $(LUGINC) $(URTINC) $(TIFFINC) $(JPEGINC) $(SGIINC) $(VIEWINC)
|
|
-LIBS = $(LUGLIB) $(URTLIB) $(TIFFLIB) $(JPEGLIB) $(VIEWLIB) -lm
|
|
+LIBS = $(LUGLIB) $(URTLIB) $(TIFFLIB) $(JPEGLIB) $(VIEWLIB) -lm -lcompat
|
|
DEFS = $(URTDEF) $(TIFFDEF) $(JPEGDEF) $(SGIDEF) $(VIEWDEF)
|
|
|
|
#
|
|
@@ -166,15 +166,7 @@
|
|
( cd examples; $(MAKE) clean )
|
|
|
|
install: liblug.a
|
|
- @echo "Installing library..."
|
|
- @if [ ! -d $(LIBLUGDEST) ]; \
|
|
- then \
|
|
- mkdir $(LIBLUGDEST); \
|
|
- chmod a+rx $(LIBLUGDEST); \
|
|
- fi; \
|
|
- cp liblug.a $(LIBLUGDEST); \
|
|
- chmod 644 $(LIBLUGDEST)/liblug.a; \
|
|
- @echo "OK."
|
|
+ /usr/bin/install -c -o root -g wheel -m 444 liblug.a $(LIBLUGDEST)
|
|
|
|
archive:; ( cd .. ; tar cvf lug-1.0.tar lug ; compress lug-1.0.tar )
|
|
|