[32908] trunk/dports/print

ryandesign at macports.org ryandesign at macports.org
Mon Jan 14 16:26:50 PST 2008


Revision: 32908
          http://trac.macosforge.org/projects/macports/changeset/32908
Author:   ryandesign at macports.org
Date:     2008-01-14 16:26:48 -0800 (Mon, 14 Jan 2008)

Log Message:
-----------
ppmtomd: new port

Added Paths:
-----------
    trunk/dports/print/ppmtomd/
    trunk/dports/print/ppmtomd/Portfile
    trunk/dports/print/ppmtomd/files/
    trunk/dports/print/ppmtomd/files/patch-Makefile.diff

Added: trunk/dports/print/ppmtomd/Portfile
===================================================================
--- trunk/dports/print/ppmtomd/Portfile	                        (rev 0)
+++ trunk/dports/print/ppmtomd/Portfile	2008-01-15 00:26:48 UTC (rev 32908)
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem              1.0
+
+name                    ppmtomd
+version                 1.5
+categories              print
+platforms               darwin
+maintainers             ryandesign openmaintainer
+homepage                http://ppmtomd.julianbradfield.org/
+master_sites            ${homepage}
+
+description
+
+long_description
+
+checksums \
+    md5 6ba142a5fc9bcae23a44141f193ce90e \
+    sha1 5c33b8a37fd2ce66e182bef737360e6c73e5e2d1 \
+    rmd160 8cff67ee3553eaeea7a824d1d7d495b4682a5a8a
+
+universal_variant       no
+
+patchfiles \
+    patch-Makefile.diff
+
+configure {
+#    reinplace "s%/usr/local%${destroot}${prefix}%g" ${worksrcpath}/Makefile
+#    reinplace -E "s%^(CDEBUGFLAGS=).*$%\\1${configure.cflags} ${configure.cppflags}%g" ${worksrcpath}/Makefile
+#    reinplace -E "s%^# (LDLIBS=).*$%\\1${configure.ldflags}%g" ${worksrcpath}/Makefile
+    reinplace "s%@PREFIX@%${prefix}%g" ${worksrcpath}/Makefile
+    reinplace "s%@DESTROOT@%${destroot}%g" ${worksrcpath}/Makefile
+    reinplace "s%@CFLAGS@%${configure.cflags}%g" ${worksrcpath}/Makefile
+    reinplace "s%@CPPFLAGS@%${configure.cppflags}%g" ${worksrcpath}/Makefile
+    reinplace "s%@LDFLAGS@%${configure.ldflags}%g" ${worksrcpath}/Makefile
+}
+
+#build.env-append \
+#	BINDIR=${destroot}${prefix}/bin \
+#	MANDIR=${destroot}${prefix}/man \
+#	CDEBUGFLAGS="${configure.cflags} ${configure.cppflags}"
+
+livecheck.check         regex
+livecheck.url           ${homepage}
+livecheck.regex         ${name}-(\[0-9.\]+)\\.tar


Property changes on: trunk/dports/print/ppmtomd/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/print/ppmtomd/files/patch-Makefile.diff
===================================================================
--- trunk/dports/print/ppmtomd/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/print/ppmtomd/files/patch-Makefile.diff	2008-01-15 00:26:48 UTC (rev 32908)
@@ -0,0 +1,37 @@
+--- Makefile.orig	2008-01-14 18:18:23.000000000 -0600
++++ Makefile	2008-01-14 18:20:47.000000000 -0600
+@@ -13,9 +13,9 @@
+ # CPVALINK = Y
+ 
+ # where to install the binary
+-BINDIR = /usr/local/bin
++BINDIR = @DESTROOT@@PREFIX@/bin
+ # where to install the man page
+-MANDIR = /usr/local/share/man/man1
++MANDIR = @DESTROOT@@PREFIX@/share/man/man1
+ # extension of the man page
+ MANEXT = 1
+ 
+@@ -26,11 +26,11 @@
+ # of work. Switching on optimization *does* change the output
+ # slightly, probably owing to slight differences in floating point
+ # calculations.
+-CDEBUGFLAGS=-O2
++CDEBUGFLAGS=@CFLAGS@ @CPPFLAGS@
+ # if your ppm libraries are not in a standard place, uncomment
+ # and change this. You may also need thing like -R, but if you're
+ # on that sort of system you probably know it!
+-# LDLIBS = -L/usr/local/lib
++LDLIBS = @LDFLAGS@
+ 
+ # install commands
+ BININSTALL = install -m 0555
+@@ -38,7 +38,7 @@
+ 
+ OBJS = ppmtomd.o mddata.o photocolcor.o vphotocolcor.o dyesubcolcor.o
+ ppmtomd: $(OBJS)
+-	$(CC) -o ppmtomd $(OBJS) $(LDLIBS) -lpnm -lppm -lpgm -lpbm -lm
++	$(CC) -o ppmtomd $(OBJS) $(LDLIBS) -lnetpbm -lm
+ 
+ ppmtomd.o: ppmtomd.c mddata.h
+ 	$(CC) $(CDEBUGFLAGS) $(DEFAULTMODEL) -W -Wall -Wstrict-prototypes -c ppmtomd.c 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080114/92680ffd/attachment.html


More information about the macports-changes mailing list