Import dpic-2011.04.19, from Anthony J. Bentley.
Dpic is a simple language, derived from pic and gpic, to produce diagrams for LaTeX documents. It is particularly suited for easily creating line diagrams such as electric circuits. Some tweaks added to obey CC/CFLAGS, and install examples. ok jasper@
This commit is contained in:
parent
a0764a664c
commit
2dafeb611f
32
graphics/dpic/Makefile
Normal file
32
graphics/dpic/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/05/15 18:49:41 landry Exp $
|
||||
|
||||
COMMENT = pic-like interpreter for producing line graphics
|
||||
|
||||
DISTNAME = dpic-2011.04.19
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
HOMEPAGE = https://ece.uwaterloo.ca/~aplevich/dpic/
|
||||
|
||||
# 2-clause BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += c m
|
||||
WRKDIST = ${WRKDIR}/dpic
|
||||
|
||||
ALL_TARGET = dpic
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dpic ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/dpic.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dpic/
|
||||
cd ${WRKSRC}/examples/ && pax -rw * ${PREFIX}/share/examples/dpic/
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/dpic/distinfo
Normal file
5
graphics/dpic/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (dpic-2011.04.19.tar.gz) = Q8hD6BvP4F+XrBEhNEMQJQ==
|
||||
RMD160 (dpic-2011.04.19.tar.gz) = fn0L65axeguQwcKSkr3i2Yofzu8=
|
||||
SHA1 (dpic-2011.04.19.tar.gz) = /uXE4xoKmTvsG5atbZNOE3/rCSk=
|
||||
SHA256 (dpic-2011.04.19.tar.gz) = Qbh95a/smVuf+GAoz/XfJOf7ns0MhVs5FqpQpzo0kFQ=
|
||||
SIZE (dpic-2011.04.19.tar.gz) = 474042
|
15
graphics/dpic/patches/patch-Makefile
Normal file
15
graphics/dpic/patches/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2011/05/15 18:49:41 landry Exp $
|
||||
Honour CC and CFLAGS
|
||||
--- Makefile.orig Sun May 15 20:37:54 2011
|
||||
+++ Makefile Sun May 15 20:38:31 2011
|
||||
@@ -44,8 +44,8 @@ DEST = ${DESTDIR}/${PREFIX}/bin
|
||||
# CC=xlc
|
||||
|
||||
# other. cc usually works too.
|
||||
-CFLAGS = $(DEFINEA) $(DEFINEB) $(SAFEMODE) -O
|
||||
-CC=gcc
|
||||
+CFLAGS += $(DEFINEA) $(DEFINEB) $(SAFEMODE) -O
|
||||
+CC?=gcc
|
||||
|
||||
OBJECTS = dpic.o dpic2.o p2clib.o
|
||||
|
3
graphics/dpic/pkg/DESCR
Normal file
3
graphics/dpic/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
Dpic is a simple language, derived from pic and gpic, to produce
|
||||
diagrams for LaTeX documents. It is particularly suited for easily
|
||||
creating line diagrams such as electric circuits.
|
26
graphics/dpic/pkg/PLIST
Normal file
26
graphics/dpic/pkg/PLIST
Normal file
@ -0,0 +1,26 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/05/15 18:49:41 landry Exp $
|
||||
@bin bin/dpic
|
||||
@man man/man1/dpic.1
|
||||
share/examples/dpic/
|
||||
share/examples/dpic/Examples.txt
|
||||
share/examples/dpic/Makefile
|
||||
share/examples/dpic/README
|
||||
share/examples/dpic/sources/
|
||||
share/examples/dpic/sources/diag1.pic
|
||||
share/examples/dpic/sources/diag2.pic
|
||||
share/examples/dpic/sources/diag3.pic
|
||||
share/examples/dpic/sources/diag5.pic
|
||||
share/examples/dpic/sources/diag6.pic
|
||||
share/examples/dpic/sources/diag8.pic
|
||||
share/examples/dpic/sources/diag9.pic
|
||||
share/examples/dpic/sources/diagA.pic
|
||||
share/examples/dpic/sources/diagB.pic
|
||||
share/examples/dpic/sources/test1.tex
|
||||
share/examples/dpic/sources/test2.tex
|
||||
share/examples/dpic/sources/test3.tex
|
||||
share/examples/dpic/sources/test4.tex
|
||||
share/examples/dpic/sources/test5.tex
|
||||
share/examples/dpic/sources/test6.tex
|
||||
share/examples/dpic/sources/test7.tex
|
||||
share/examples/dpic/sources/test8.tex
|
||||
share/examples/dpic/sources/test9.tex
|
Loading…
Reference in New Issue
Block a user