mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
c88dda479a
PR: 21035 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
108 lines
3.3 KiB
Plaintext
108 lines
3.3 KiB
Plaintext
--- ppm/Makefile.orig Fri Aug 4 08:45:03 2000
|
|
+++ ppm/Makefile Sat Aug 5 00:00:00 2000
|
|
@@ -21,26 +21,30 @@
|
|
NETPBMLIBS = $(LIBPPM) $(PBMDIR)/$(LIBPBM) $(PGMDIR)/$(LIBPGM)
|
|
LIBLIBS = $(PBMDIR)/$(LIBPBM) $(PGMDIR)/$(LIBPGM)
|
|
|
|
+SOVER = 1
|
|
+
|
|
PORTBINARIES = bmptoppm eyuvtoppm gouldtoppm hpcdtoppm ilbmtoppm imgtoppm \
|
|
leaftoppm mtvtoppm pcxtoppm pgmtoppm pi1toppm picttoppm \
|
|
pjtoppm \
|
|
- ppm3d ppmbrighten ppmchange ppmcolormask \
|
|
+ ppm3d ppmbrighten \
|
|
ppmdim ppmdist ppmdither \
|
|
ppmflash ppmhist ppmmake ppmmix ppmnorm \
|
|
ppmquant ppmrelief ppmshift ppmspread ppmtoacad \
|
|
- ppmtobmp ppmtoeyuv ppmtogif ppmtoleaf \
|
|
+ ppmtoeyuv ppmtogif ppmtoleaf \
|
|
ppmtoicr ppmtoilbm ppmtomitsu \
|
|
ppmtopcx ppmtopgm ppmtopi1 ppmtopict ppmtopj \
|
|
ppmtopjxl ppmtopuzz ppmtorgb3 ppmtosixel \
|
|
ppmtotga ppmtouil ppmtowinicon ppmtoxpm ppmtoyuv \
|
|
ppmtoyuvsplit ppmtv \
|
|
qrttoppm rawtoppm rgb3toppm sldtoppm spctoppm \
|
|
- sputoppm tgatoppm winicontoppm ximtoppm xpmtoppm xvminitoppm \
|
|
+ sputoppm winicontoppm xpmtoppm xvminitoppm \
|
|
yuvtoppm yuvsplittoppm
|
|
+SHHOPTBINARIES = ppmchange ppmcolormask ppmtobmp tgatoppm ximtoppm
|
|
|
|
# We don't build vidtoppm by default, because it requires special libraries
|
|
# and there is no known requirement for vidtoppm.
|
|
|
|
+NOMERGEBINARIES = $(SHHOPTBINARIES) ppmntsc
|
|
ifneq ($(JPEGLIB_DIR), NONE)
|
|
ifneq ($(JPEGHDR_DIR), NONE)
|
|
NOMERGEBINARIES += ppmtojpeg
|
|
@@ -49,7 +53,7 @@
|
|
|
|
MERGEBINARIES = $(PORTBINARIES) $(MATHBINARIES)
|
|
|
|
-MATHBINARIES = ppmcie ppmforge ppmlabel ppmntsc ppmpat ppmqvga ppmtomap
|
|
+MATHBINARIES = ppmcie ppmforge ppmlabel ppmpat ppmqvga ppmtomap
|
|
BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES)
|
|
SCRIPTS = ppmquantall ppmshadow ppmfade
|
|
|
|
@@ -58,6 +62,8 @@
|
|
MERGE_OBJECTS = $(patsubst %,%.o2, $(MERGEBINARIES))
|
|
|
|
LIBOBJECTS = libppm1.o libppm2.o libppm3.o libppm4.o libppm5.o bitio.o
|
|
+SHLIBOBJECTS = $(patsubst %.o, %.lo, $(LIBOBJECTS))
|
|
+LIBSHHOPT = $(SRCDIR)/shhopt/libshhopt.a
|
|
|
|
MANUALS1 = $(BINARIES) $(SCRIPTS)
|
|
MANUALS3 = libppm
|
|
@@ -65,18 +71,24 @@
|
|
|
|
MERGENAME= ppmmerge
|
|
|
|
-INTERFACE_HEADERS = ppm.h ppmcmap.h
|
|
+INTERFACE_HEADERS = ppm.h ppmcmap.h ppmdraw.h
|
|
|
|
.PHONY: all
|
|
all: $(BINARIES)
|
|
- $(MAKE) -C ppmtompeg all
|
|
.PHONY: merge
|
|
merge: $(MERGENAME) $(NOMERGEBINARIES)
|
|
- $(MAKE) -C ppmtompeg all
|
|
|
|
-ppmtojpeg: %: %.o $(NETPBMLIBS) $(LIBOPT)
|
|
+$(SHHOPTBINARIES): %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
+ $(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
+ $(LIBSHHOPT) $(CDEBUG)
|
|
+
|
|
+ppmntsc: %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
$(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
- -L$(JPEGLIB_DIR) -ljpeg $(CDEBUG)
|
|
+ -lm $(LIBSHHOPT) $(CDEBUG)
|
|
+
|
|
+ppmtojpeg: %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
+ $(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
+ -L$(JPEGLIB_DIR) -ljpeg $(LIBSHHOPT) $(CDEBUG)
|
|
|
|
# And libraries.
|
|
$(PBMDIR)/$(LIBPBM): FORCE
|
|
@@ -89,19 +101,19 @@
|
|
|
|
.PHONY: install.merge
|
|
install.merge: install.merge.common
|
|
- $(MAKE) -C ppmtompeg install.bin
|
|
|
|
.PHONY: install.lib
|
|
install.lib: install.lib.common
|
|
|
|
.PHONY: install.man
|
|
install.man: install.man.common
|
|
- $(MAKE) -C ppmtompeg install.man
|
|
|
|
include $(SRCDIR)/Makefile.common
|
|
|
|
+$(SRCDIR)/shhopt/libshhopt.a:
|
|
+ cd ../shhopt; $(MAKE) libshhopt.a
|
|
+
|
|
.PHONY: clean
|
|
clean: clean.common
|
|
- $(MAKE) -C ppmtompeg clean
|
|
|
|
FORCE:
|