summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/fpc-hermes/Makefile23
-rw-r--r--graphics/fpc-hermes/files/patch-Makefile10
-rw-r--r--graphics/fpc-hermes/pkg-plist14
4 files changed, 48 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 1d5f5d65974b..27b607164e03 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -185,6 +185,7 @@
SUBDIR += fpc-fpvectorial
SUBDIR += fpc-ggi
SUBDIR += fpc-graph
+ SUBDIR += fpc-hermes
SUBDIR += fpc-imagemagick
SUBDIR += fpc-imlib
SUBDIR += fpc-libgd
diff --git a/graphics/fpc-hermes/Makefile b/graphics/fpc-hermes/Makefile
new file mode 100644
index 000000000000..be9c0ed5d1ef
--- /dev/null
+++ b/graphics/fpc-hermes/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: fpc-hermes
+# Date created: 2010-04-22
+# Whom: Christopher Key <cjk32@cam.ac.uk>
+#
+# $FreeBSD$
+#
+
+PORTREVISION= 0
+CATEGORIES= graphics lang
+PKGNAMESUFFIX= -hermes
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= Free Pascal hermes unit
+
+USE_FPC= yes
+
+MASTERDIR= ${.CURDIR}/../../lang/fpc
+WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//}
+EXTRACTUNITDIR+= ${WRKUNITDIR}
+
+OPTIONS= HERMES "Install hermes graphics library" on
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/fpc-hermes/files/patch-Makefile b/graphics/fpc-hermes/files/patch-Makefile
new file mode 100644
index 000000000000..040a8e4a79fc
--- /dev/null
+++ b/graphics/fpc-hermes/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- packages/hermes/Makefile 2009-12-12 15:51:44.000000000 +0000
++++ packages/hermes/Makefile 2010-04-22 21:52:27.000000000 +0100
+@@ -623,6 +623,7 @@
+ ifeq ($(FULL_TARGET),armeb-embedded)
+ override TARGET_LOADERS+=$(CPU_LOADERS)
+ endif
++override INSTALL_FPCPACKAGE=y
+ ifeq ($(FULL_TARGET),i386-linux)
+ override COMPILER_INCLUDEDIR+=src
+ endif
diff --git a/graphics/fpc-hermes/pkg-plist b/graphics/fpc-hermes/pkg-plist
new file mode 100644
index 000000000000..9bfebb7b118d
--- /dev/null
+++ b/graphics/fpc-hermes/pkg-plist
@@ -0,0 +1,14 @@
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/Package.fpc
+%%FPC_I386%%lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/mmx_clr.o
+%%FPC_I386%%lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/mmxp_32.o
+%%FPC_I386%%lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/mmx_main.o
+%%FPC_I386%%lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/mmxp2_32.o
+%%FPC_I386%%lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/hm_i386.o
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/hermes.ppu
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/hermes.o
+lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes/libphermes.a
+@dirrm lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/hermes
+@dirrmtry lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%
+@dirrmtry lib/fpc/%%PORTVERSION%%/units
+@dirrmtry lib/fpc/%%PORTVERSION%%
+@dirrmtry lib/fpc