diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-07-30 21:34:18 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-07-30 21:34:18 +0000 |
commit | 1b6b1eabcd212339e4eca66430e3d95050456283 (patch) | |
tree | d7e03f7a47aa7db1303377532a37afce94a3145d /converter/other | |
parent | 9a8509a688eb9fe25e1d6ab9c186d627eb307e9a (diff) | |
download | netpbm-mirror-1b6b1eabcd212339e4eca66430e3d95050456283.tar.gz netpbm-mirror-1b6b1eabcd212339e4eca66430e3d95050456283.tar.xz netpbm-mirror-1b6b1eabcd212339e4eca66430e3d95050456283.zip |
Instead of omitting Pnmtops from build when there is no libz, just build Pnmtops without flate capability
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1522 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/Makefile | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/converter/other/Makefile b/converter/other/Makefile index d94ca281..989475da 100644 --- a/converter/other/Makefile +++ b/converter/other/Makefile @@ -77,6 +77,18 @@ ifeq ($(TIFFLIB_NEEDS_Z),Y) endif endif +# Pnmtops's "flate" compression function requires libz. But if we don't +# have libz, we still build Pnmtops; we just omit the flate compression +# capability. +ifeq ($(ZLIB),NONE) + PNMTOPS_ZLIB_OPT = + PNMTOPS_NOFLATE_OPT = -DNOFLATE +else + PNMTOPS_ZLIB_OPT = $(ZLIB) + PNMTOPS_NOFLATE_OPT = +endif + + PORTBINARIES = avstopam bmptopnm fitstopnm \ gemtopnm giftopnm hdifftopam infotopam \ pamtoavs pamtodjvurle pamtofits pamtogif \ @@ -93,7 +105,15 @@ ifneq ($(DONT_HAVE_PROCESS_MGMT),Y) PORTBINARIES += pstopnm endif -BINARIES = $(PORTBINARIES) pnmtorast rasttopnm pamtopdbimg pdbimgtopam srftopam pamtosrf +BINARIES = \ + $(PORTBINARIES) \ + pamtopdbimg \ + pamtosrf \ + pdbimgtopam \ + pnmtops \ + pnmtorast \ + rasttopnm \ + srftopam \ ifeq ($(HAVE_PNGLIB),Y) BINARIES += pnmtopng pngtopam pamrgbatopng @@ -107,9 +127,6 @@ endif ifneq ($(URTLIB),NONE) BINARIES += rletopnm pnmtorle endif -ifneq ($(ZLIB),NONE) - BINARIES += pnmtops -endif ifneq ($(XML2_LIBS),NONE) BINARIES += svgtopam @@ -132,6 +149,7 @@ endif OBJECTS = $(BINARIES:%=%.o) $(EXTRA_OBJECTS) MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2) $(EXTRA_OBJECTS) +pnmtops.o pnmtops.o2: CFLAGS_TARGET=$(PNMTOPS_NOFLATE_OPT) SCRIPTS = anytopnm pnmtoplainpnm @@ -207,7 +225,7 @@ rletopnm pnmtorle: %: %.o $(NETPBMLIB) $(URTLIBDEP) $(LIBOPT) pnmtops: %: %.o $(NETPBMLIB) $(LIBOPT) $(LD) -o $@ $@.o \ - $(shell $(LIBOPT) $(NETPBMLIB) $(ZLIB)) \ + $(shell $(LIBOPT) $(NETPBMLIB) $(PNMTOPS_ZLIB_OPT)) \ $(MATHLIB) $(LDFLAGS) $(LDLIBS) $(RPATH) $(LADD) pnmtorast rasttopnm: %: %.o rast.o $(NETPBMLIB) $(LIBOPT) |