blob: bc0f59137280b0e0ad7f2627dec3bec81f4ef4d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
ifeq ($(SRCDIR)x,x)
SRCDIR = $(CURDIR)/..
BUILDDIR = $(SRCDIR)
endif
SUBDIR = editor
VPATH=.:$(SRCDIR)/$(SUBDIR)
include $(BUILDDIR)/config.mk
SUBDIRS = specialty
# We tend to separate out the build targets so that we don't have
# any more dependencies for a given target than it really needs.
# That way, if there is a problem with a dependency, we can still
# successfully build all the stuff that doesn't depend upon it.
# This package is so big, it's useful even when some parts won't
# build.
PORTBINARIES = pamaddnoise pambackground pamcomp pamcut \
pamdice pamditherbw pamedge \
pamenlarge \
pamflip pamfunc pammasksharpen \
pamperspective \
pamscale pamsistoaglyph pamstretch pamthreshold pamundice \
pbmclean pbmmask pbmpscale pbmreduce \
pgmdeshadow pgmenhance \
pgmmedian \
pnmalias pnmcat pnmcomp pnmconvol pnmcrop \
pnmgamma \
pnmhisteq pnminvert pnmmontage \
pnmnlfilt pnmnorm pnmpad pnmpaste \
pnmremap pnmrotate \
pnmscalefixed pnmshear pnmsmooth pnmstitch pnmtile \
ppmbrighten ppmchange ppmcolormask \
ppmdim ppmdist ppmdither ppmdraw \
ppmflash ppmlabel ppmmix \
# We don't include programs that have special library dependencies in the
# merge scheme, because we don't want those dependencies to prevent us
# from building all the other programs.
NOMERGEBINARIES =
MERGEBINARIES = $(PORTBINARIES)
BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES)
SCRIPTS = pnmflip ppmfade ppmquant ppmquantall ppmshadow \
pamstretch-gen pnmmargin pnmquant
OBJECTS = $(BINARIES:%=%.o)
MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2)
.PHONY: all
all: $(BINARIES) $(SUBDIRS:%=%/all)
include $(SRCDIR)/common.mk
install.bin: install.bin.local
.PHONY: install.bin.local
install.bin.local: $(PKGDIR)/bin
# Remember that $(SYMLINK) might just be a copy command.
# backward compatibility: program used to be pnminterp
cd $(PKGDIR)/bin ; \
rm -f pnminterp; \
$(SYMLINK) pamstretch$(EXE) pnminterp
# In March 2002, pnmnorm replaced ppmnorm and pgmnorm
cd $(PKGDIR)/bin ; \
rm -f ppmnorm ; \
$(SYMLINK) pnmnorm$(EXE) ppmnorm
cd $(PKGDIR)/bin ; \
rm -f pgmnorm ; \
$(SYMLINK) pnmnorm$(EXE) pgmnorm
# In March 2003, pamedge replaced pgmedge
cd $(PKGDIR)/bin ; \
rm -f pgmedge ; \
$(SYMLINK) pamedge$(EXE) pgmedge
# In October 2004, pamenlarge replaced pnmenlarge
cd $(PKGDIR)/bin ; \
rm -f pnmenlarge ; \
$(SYMLINK) pamenlarge$(EXE) pnmenlarge
# In March 2009, pamcut replaced pnmcut (but pamcut is much older -- pnmcut
# was obsoleted by pamcut long before this).
cd $(PKGDIR)/bin ; \
rm -f pnmcut ; \
$(SYMLINK) pamcut$(EXE) pnmcut
# In March 2009, pamscale replaced pnmscale (but pamscale is much older --
# pnmscale was obsoleted by pamscale long before this).
cd $(PKGDIR)/bin ; \
rm -f pnmscale ; \
$(SYMLINK) pamscale$(EXE) pnmscale
|