aboutsummaryrefslogtreecommitdiff
path: root/graphics/bmeps
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-05-29 16:49:47 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-05-29 16:49:47 +0000
commit407c5eaf8740c92e8f49897432cf5b0f433f0f8f (patch)
tree1d83a173997684600e547f89d45cfe99fa1555b1 /graphics/bmeps
parent62e2678620f6bc0b52cf10066f8f799a7d6639c5 (diff)
downloadports-407c5eaf8740c92e8f49897432cf5b0f433f0f8f.tar.gz
ports-407c5eaf8740c92e8f49897432cf5b0f433f0f8f.zip
Notes
Diffstat (limited to 'graphics/bmeps')
-rw-r--r--graphics/bmeps/Makefile55
-rw-r--r--graphics/bmeps/distinfo2
-rw-r--r--graphics/bmeps/files/patch-aa10
-rw-r--r--graphics/bmeps/files/patch-ab20
-rw-r--r--graphics/bmeps/pkg-descr18
-rw-r--r--graphics/bmeps/pkg-plist40
6 files changed, 145 insertions, 0 deletions
diff --git a/graphics/bmeps/Makefile b/graphics/bmeps/Makefile
new file mode 100644
index 000000000000..c5c9d993f710
--- /dev/null
+++ b/graphics/bmeps/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: bmeps
+# Date created: 6 Jan 2004
+# Whom: Hideyuki KURASHINA <rushani@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bmeps
+PORTVERSION= 1.0.7a
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= rushani@FreeBSD.org
+COMMENT= Convert bitmap images (PNG/JPEG/NetPBM) to EPS
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
+ jpeg.9:${PORTSDIR}/graphics/jpeg \
+ netpbm.1:${PORTSDIR}/graphics/netpbm
+
+USE_AUTOCONF= 213
+USE_BZIP2= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include"
+GNU_CONFIGURE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+MAN1= bmeps.1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bmeps ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/bmeps.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/pnmeps.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/libbmeps.a ${PREFIX}/lib
+ ${INSTALL_MAN} ${WRKSRC}/bmeps.1 ${PREFIX}/man/man1
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/*.css ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/*.html ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/*.pdf ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/*.png ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/*.tex ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/*.txt ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/EXAMPLES/*.bb ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/EXAMPLES/*.jpg ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/EXAMPLES/*.ps ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/EXAMPLES/*.tex ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOCU/EXAMPLES/*.txt ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/bmeps/distinfo b/graphics/bmeps/distinfo
new file mode 100644
index 000000000000..233ef36b7082
--- /dev/null
+++ b/graphics/bmeps/distinfo
@@ -0,0 +1,2 @@
+MD5 (bmeps-1.0.7a.tar.bz2) = a7437a5d28fb5347c9012d200fb8e24a
+SIZE (bmeps-1.0.7a.tar.bz2) = 1196671
diff --git a/graphics/bmeps/files/patch-aa b/graphics/bmeps/files/patch-aa
new file mode 100644
index 000000000000..b392032c36b0
--- /dev/null
+++ b/graphics/bmeps/files/patch-aa
@@ -0,0 +1,10 @@
+--- Makefile.in.orig Tue Nov 18 22:06:17 2003
++++ Makefile.in Tue Jan 6 17:44:08 2004
+@@ -16,6 +16,7 @@
+
+ INCLUDES= -I. -I$(srcdir) -I$(incdir)
+ DEFS= @DEFS@
++LDFLAGS= -L$(libdir)
+
+ COMPILEC= $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(VERSNO)
+ LINK= $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(LDFLAGS) -o $@
diff --git a/graphics/bmeps/files/patch-ab b/graphics/bmeps/files/patch-ab
new file mode 100644
index 000000000000..bf0fd6a80c15
--- /dev/null
+++ b/graphics/bmeps/files/patch-ab
@@ -0,0 +1,20 @@
+--- configure.in.orig Tue Jan 6 16:44:59 2004
++++ configure.in Tue Jan 6 16:45:16 2004
+@@ -15,7 +15,7 @@
+ AC_HEADER_CHECK(io.h, AC_DEFINE(HAVE_IO_H))
+ AC_HEADER_CHECK(fcntl.h, AC_DEFINE(HAVE_FCNTL_H))
+ AC_HAVE_FUNCS(strcasecmp stricmp unlink remove getpid)
+-AC_HAVE_FUNCS(getmode _getmode setmode _setmode fileno _fileno)
++dnl AC_HAVE_FUNCS(getmode _getmode setmode _setmode fileno _fileno)
+ AC_CHECK_LIB(z, deflate, ZLIB='-lz';AC_DEFINE(HAVE_ZLIB),ZLIB='')
+ AC_SUBST(ZLIB)
+ echo "Checking for libpng... "
+@@ -39,7 +39,7 @@
+ xelval maxval;
+ cols = rows = format = 0;
+ pnm_readpnminit(stdin, &cols, &rows, &maxval, &format);
+-],echo yes;LIBPNM='-lpnm -lppm -lpgm -lpbm';AC_DEFINE(HAVE_PNM_H),LIBPNM='';echo no)
++],echo yes;LIBPNM='-lnetpbm';AC_DEFINE(HAVE_PNM_H),LIBPNM='';echo no)
+ AC_SUBST(LIBPNM)
+ AC_OUTPUT(Makefile)
+
diff --git a/graphics/bmeps/pkg-descr b/graphics/bmeps/pkg-descr
new file mode 100644
index 000000000000..307341b4bc54
--- /dev/null
+++ b/graphics/bmeps/pkg-descr
@@ -0,0 +1,18 @@
+The bmeps package contains a command line program and a library to
+convert bitmap image files (PNG/JPEG/NetPBM) to EPS. EPS level 1, 2
+and 3 can be used.
+
+Depending on the EPS level there are different compression and encoding
+algorithms available:
+
+ _ run-length-compression (2 and above)
+ _ flate compression (3 and above)
+ _ ASCII-85-encoding instead of ASCII-Hex (2 and above)
+
+The program is intended to be used with LaTeX/dvips or other DTP software
+accepting EPS graphics.
+
+No automated scaling/rotating is done by the program to fit pages of any
+paper size, this is left up to the DTP application including the graphics.
+
+WWW: http://bmeps.sourceforge.net/
diff --git a/graphics/bmeps/pkg-plist b/graphics/bmeps/pkg-plist
new file mode 100644
index 000000000000..512f76795cf5
--- /dev/null
+++ b/graphics/bmeps/pkg-plist
@@ -0,0 +1,40 @@
+bin/bmeps
+include/bmeps.h
+include/pnmeps.h
+lib/libbmeps.a
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/style.css
+%%PORTDOCS%%%%DOCSDIR%%/changes.html
+%%PORTDOCS%%%%DOCSDIR%%/faq.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/install.html
+%%PORTDOCS%%%%DOCSDIR%%/usage.html
+%%PORTDOCS%%%%DOCSDIR%%/bmeps.pdf
+%%PORTDOCS%%%%DOCSDIR%%/1g.png
+%%PORTDOCS%%%%DOCSDIR%%/2c8r.png
+%%PORTDOCS%%%%DOCSDIR%%/2g8r.png
+%%PORTDOCS%%%%DOCSDIR%%/3c8rf.png
+%%PORTDOCS%%%%DOCSDIR%%/bg3c8rf.png
+%%PORTDOCS%%%%DOCSDIR%%/bg3c8rfa.png
+%%PORTDOCS%%%%DOCSDIR%%/bg3c8rfam.png
+%%PORTDOCS%%%%DOCSDIR%%/bg3c8rfams0_255_255.png
+%%PORTDOCS%%%%DOCSDIR%%/d.png
+%%PORTDOCS%%%%DOCSDIR%%/bmeps.tex
+%%PORTDOCS%%%%DOCSDIR%%/ntmak.txt
+%%PORTDOCS%%%%EXAMPLESDIR%%/stefan_255_rgba.bb
+%%PORTDOCS%%%%EXAMPLESDIR%%/arch5.jpg
+%%PORTDOCS%%%%EXAMPLESDIR%%/1g.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/2c8r.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/2g8r.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/3c8rf.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/bg3c8rf.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/bg3c8rfa.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/bg3c8rfam.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/bg3c8rfams0_255_255.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/d.ps
+%%PORTDOCS%%%%EXAMPLESDIR%%/example.tex
+%%PORTDOCS%%%%EXAMPLESDIR%%/german.tex
+%%PORTDOCS%%%%EXAMPLESDIR%%/pdfexample.tex
+%%PORTDOCS%%%%EXAMPLESDIR%%/example.txt
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%