mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
1d2f140786
PR: ports/18676 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
--- pnm/Makefile.orig Tue May 16 10:29:36 2000
|
|
+++ pnm/Makefile Sat May 20 00:00:00 2000
|
|
@@ -3,8 +3,7 @@
|
|
|
|
LIBROOT = pnm
|
|
LIBPNM = lib$(LIBROOT).$(NETPBMLIBSUFFIX)
|
|
-MAJ = 9
|
|
-MIN = 0
|
|
+SOVER = 1
|
|
|
|
PPMDIR = $(SRCDIR)/ppm
|
|
LIBPPM = libppm.$(NETPBMLIBSUFFIX)
|
|
@@ -102,6 +101,8 @@
|
|
MERGE_OBJECTS = $(patsubst %,%.o2, $(MERGEBINARIES))
|
|
|
|
LIBOBJECTS = libpnm1.o libpnm2.o libpnm3.o libpnm4.o
|
|
+LIBSOBJECTS = libpnm1.so libpnm2.so libpnm3.so libpnm4.so
|
|
+LIBSHHOPT = $(SRCDIR)/shhopt/libshhopt.a
|
|
|
|
MANUALS1 = $(BINARIES) $(SCRIPTS)
|
|
MANUALS3 = libpnm
|
|
@@ -113,10 +114,8 @@
|
|
|
|
.PHONY: all
|
|
all: $(BINARIES)
|
|
- $(MAKE) -C jbig all
|
|
PHONY: merge
|
|
merge: $(MERGENAME) $(NOMERGEBINARIES)
|
|
- $(MAKE) -C jbig all
|
|
|
|
ifeq ($(TIFFLIB_DIR),$(TIFFDIR))
|
|
# We're using the internal Tiff library, so make sure it's built
|
|
@@ -127,18 +126,18 @@
|
|
endif
|
|
|
|
# The Tiff library references math functions.
|
|
-tifftopnm pnmtotiff pnmtotiffcmyk: %: %.o \
|
|
- $(NETPBMLIBS) $(TIFFLIB_DIR)/libtiff.$(LIBTIFFSUFFIX) $(LIBOPT)
|
|
+tifftopnm pnmtotiff pnmtotiffcmyk: %: %.o $(NETPBMLIBS) $(LIBOPT) \
|
|
+ $(TIFFLIB_DIR)/libtiff.$(LIBTIFFSUFFIX) $(LIBSHHOPT)
|
|
$(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
- -L$(TIFFLIB_DIR) -ltiff $(JPEGLD) -lm $(CDEBUG)
|
|
+ -L$(TIFFLIB_DIR) -ltiff $(JPEGLD) -lm $(LIBSHHOPT) $(CDEBUG)
|
|
|
|
pngtopnm pnmtopng: %: %.o $(NETPBMLIBS) $(LIBOPT)
|
|
$(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
-L$(PNGLIB_DIR) -lpng -lz -lm $(CDEBUG)
|
|
|
|
-jpegtopnm: %: %.o $(NETPBMLIBS) $(LIBOPT)
|
|
+jpegtopnm: %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
$(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` $(JPEGLD) \
|
|
- $(CDEBUG)
|
|
+ $(LIBSHHOPT) $(CDEBUG)
|
|
|
|
rletopnm pnmtorle: %: %.o $(NETPBMLIBS) $(LIBOPT)
|
|
$(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
@@ -165,22 +164,20 @@
|
|
# backward compatibility: program used to be gemtopbm
|
|
rm -f $(INSTALLBINARIES)/gemtopbm
|
|
ln -s $(INSTALLBINARIES)/gemtopnm$(EXE) $(INSTALLBINARIES)/gemtopbm
|
|
- $(MAKE) -C jbig install.bin
|
|
|
|
.PHONY: install.merge
|
|
install.merge: install.merge.common
|
|
- $(MAKE) -C jbig install.bin
|
|
|
|
.PHONY: install.lib
|
|
install.lib: install.lib.common
|
|
|
|
.PHONY: install.man
|
|
install.man: install.man.common
|
|
- $(MAKE) -C jbig install.man
|
|
|
|
+$(SRCDIR)/shhopt/libshhopt.a:
|
|
+ cd ../shhopt; $(MAKE) libshhopt.a
|
|
|
|
.PHONY: clean
|
|
clean: clean.common
|
|
- $(MAKE) -C jbig clean
|
|
|
|
FORCE:
|