mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Update to 1.0.1
PR: ports/95229 Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer)
This commit is contained in:
parent
9f7c6a243d
commit
5c2c3cfeb0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158649
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 $<
|
||||
|
Loading…
Reference in New Issue
Block a user