aboutsummaryrefslogtreecommitdiff
path: root/graphics/metapixel
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-04-02 14:31:47 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-04-02 14:31:47 +0000
commit5c2c3cfeb0df0514fbfb9db0f6e85a14b9133e73 (patch)
tree397b28b24451a28f012fa84610df1d32ca84724d /graphics/metapixel
parent9f7c6a243d2485a2eadf571eb8c4d60cdc96994f (diff)
downloadports-5c2c3cfeb0df0514fbfb9db0f6e85a14b9133e73.tar.gz
ports-5c2c3cfeb0df0514fbfb9db0f6e85a14b9133e73.zip
Notes
Diffstat (limited to 'graphics/metapixel')
-rw-r--r--graphics/metapixel/Makefile6
-rw-r--r--graphics/metapixel/distinfo6
-rw-r--r--graphics/metapixel/files/patch-Makefile22
3 files changed, 13 insertions, 21 deletions
diff --git a/graphics/metapixel/Makefile b/graphics/metapixel/Makefile
index 2c3a3ed8c90d..4421fc23b36b 100644
--- a/graphics/metapixel/Makefile
+++ b/graphics/metapixel/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= metapixel
-PORTVERSION= 1.0.0
+PORTVERSION= 1.0.1
CATEGORIES= graphics
MASTER_SITES= http://www.complang.tuwien.ac.at/~schani/metapixel/ \
http://dragon.roe.ch/mirrors/distfiles/metapixel/
@@ -18,7 +18,6 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
USE_GETOPT_LONG=yes
USE_GMAKE= yes
-USE_REINPLACE= yes
MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I." \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
@@ -31,9 +30,6 @@ MAN1= metapixel.1
post-patch:
@${RM} ${WRKSRC}/getopt.h
- @${MV} ${WRKSRC}/sizesort ${WRKSRC}/metapixel-sizesort
- @${REINPLACE_CMD} -e 's/imagesize/metapixel-imagesize/' \
- ${WRKSRC}/metapixel-sizesort
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/metapixel ${PREFIX}/bin
diff --git a/graphics/metapixel/distinfo b/graphics/metapixel/distinfo
index c72a2141b571..4481009ea7f5 100644
--- a/graphics/metapixel/distinfo
+++ b/graphics/metapixel/distinfo
@@ -1,3 +1,3 @@
-MD5 (metapixel-1.0.0.tar.gz) = df8709bb890061c2bea4c65db4a1057c
-SHA256 (metapixel-1.0.0.tar.gz) = 9b861e43ee851f23af6775f3499f7b96613c04da0d31d0d36c12ad18993e5a54
-SIZE (metapixel-1.0.0.tar.gz) = 56426
+MD5 (metapixel-1.0.1.tar.gz) = b0fcb1ad62708478478218190c355fd0
+SHA256 (metapixel-1.0.1.tar.gz) = 1a9a97563e4118acb48398735401fef642ca0e50ffb3f31c1d773d696fd06c62
+SIZE (metapixel-1.0.1.tar.gz) = 57926
diff --git a/graphics/metapixel/files/patch-Makefile b/graphics/metapixel/files/patch-Makefile
index ce9082ac0663..004025e7f234 100644
--- a/graphics/metapixel/files/patch-Makefile
+++ b/graphics/metapixel/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Sun May 8 18:25:51 2005
-+++ Makefile Sun Jul 31 13:55:22 2005
+--- Makefile.orig Sun Feb 19 22:30:56 2006
++++ Makefile Sun Apr 2 15:57:00 2006
@@ -1,5 +1,5 @@
-PREFIX = /usr/local
-INSTALL = install
@@ -9,17 +9,15 @@
BINDIR = $(PREFIX)/bin
@@ -8,24 +8,24 @@
- VERSION = 1.0.0
+ VERSION = 1.0.1
#DEBUG = -g
-OPTIMIZE = -O2
+#OPTIMIZE = -O2
#PROFILE = -pg
--MACOS_LDOPTS = -L/sw/lib
--MACOS_CCOPTS = -I/sw/include
-+#MACOS_LDOPTS = -L/sw/lib
-+#MACOS_CCOPTS = -I/sw/include
+ MACOS_LDOPTS = -L/sw/lib
+ MACOS_CCOPTS = -I/sw/include
-LDOPTS = $(MACOS_LDOPTS) -L/usr/X11R6/lib $(PROFILE) $(DEBUG)
-CCOPTS = $(MACOS_CCOPTS) -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Wall $(OPTIMIZE) $(DEBUG) $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\"
@@ -37,7 +35,7 @@
+CONVERT_OBJS = convert.o $(LISPREADER_OBJS)
IMAGESIZE_OBJS = imagesize.o rwpng.o rwjpeg.o readimage.o
--all : metapixel metapixel.1 convert imagesize
+-all : metapixel metapixel.1 convert metapixel-imagesize
+all : metapixel metapixel.1 metapixel-convert metapixel-imagesize metapixel-zoom
metapixel : $(OBJS)
@@ -51,15 +49,13 @@
+metapixel-convert : $(CONVERT_OBJS)
+ $(CC) $(LDOPTS) -o $@ $(CONVERT_OBJS)
--imagesize : $(IMAGESIZE_OBJS)
-- $(CC) $(LDOPTS) -o imagesize $(IMAGESIZE_OBJS) -lpng -ljpeg -lm -lz
-+metapixel-imagesize : $(IMAGESIZE_OBJS)
-+ $(CC) $(LDOPTS) -o $@ $(IMAGESIZE_OBJS) -lpng -ljpeg -lm -lz
+ metapixel-imagesize : $(IMAGESIZE_OBJS)
+ $(CC) $(LDOPTS) -o metapixel-imagesize $(IMAGESIZE_OBJS) -lpng -ljpeg -lm -lz
-zoom : zoom.c rwjpeg.c rwpng.c readimage.c writeimage.c
- $(CC) -o zoom $(OPTIMIZE) $(PROFILE) $(MACOS_CCOPTS) -DTEST_ZOOM zoom.c rwjpeg.c rwpng.c readimage.c writeimage.c $(MACOS_LDOPTS) -lpng -ljpeg -lm -lz
+metapixel-zoom : zoom.c rwjpeg.c rwpng.c readimage.c writeimage.c
-+ $(CC) $(CCOPTS) $(LDFLAGS) -o $@ -DTEST_ZOOM zoom.c rwjpeg.c rwpng.c readimage.c writeimage.c -lpng -ljpeg -lm -lz
++ $(CC) $(CCOPTS) $(LDOPTS) -o $@ -DTEST_ZOOM zoom.c rwjpeg.c rwpng.c readimage.c writeimage.c -lpng -ljpeg -lm -lz
%.o : %.c
$(CC) $(CCOPTS) -c $<