aboutsummaryrefslogtreecommitdiffstats
path: root/devel/glib20-reference
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2006-05-10 06:03:26 +0800
committerjylefort <jylefort@FreeBSD.org>2006-05-10 06:03:26 +0800
commit8a02e24718141522e8ef961196dda8865bb909b4 (patch)
treeeddb8e7ce382fcf079a599e57104b8892b99af01 /devel/glib20-reference
parentecc815df61a0eb8a3c455e5a28aef9874b97526e (diff)
downloadfreebsd-ports-gnome-8a02e24718141522e8ef961196dda8865bb909b4.tar.gz
freebsd-ports-gnome-8a02e24718141522e8ef961196dda8865bb909b4.tar.zst
freebsd-ports-gnome-8a02e24718141522e8ef961196dda8865bb909b4.zip
Add glib20-reference and the bsd.gnome-reference.mk framework.
Diffstat (limited to 'devel/glib20-reference')
-rw-r--r--devel/glib20-reference/Makefile16
-rw-r--r--devel/glib20-reference/bsd.gnome-reference.mk53
2 files changed, 69 insertions, 0 deletions
diff --git a/devel/glib20-reference/Makefile b/devel/glib20-reference/Makefile
new file mode 100644
index 000000000000..e941dedbb348
--- /dev/null
+++ b/devel/glib20-reference/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+BOOKS= glib gobject
+
+glib_MAN= glib-gettextize.1
+gobject_MAN= glib-genmarshal.1 glib-mkenums.1 gobject-query.1
+
+MAN1= ${glib_MAN} ${gobject_MAN}
+
+post-install:
+.for m in glib gobject
+ ${INSTALL_MAN} ${${m}_MAN:S|^|${REFERENCE_SRC}/${m}/|} \
+ ${PREFIX}/man/man1
+.endfor
+
+.include "${.CURDIR}/../../devel/glib20-reference/bsd.gnome-reference.mk"
diff --git a/devel/glib20-reference/bsd.gnome-reference.mk b/devel/glib20-reference/bsd.gnome-reference.mk
new file mode 100644
index 000000000000..928855b63b07
--- /dev/null
+++ b/devel/glib20-reference/bsd.gnome-reference.mk
@@ -0,0 +1,53 @@
+# $FreeBSD$
+
+PARENTDIR?= ${.CURDIR:S|-reference$||}
+REFERENCE_PORT= ${PKGORIGIN:S|-reference$||}
+
+.include "${PARENTDIR}/Makefile"
+
+.if !defined(DISTNAME)
+DISTNAME:= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
+.endif
+.if !defined(DOCSDIR)
+DOCSDIR:= ${PREFIX}/share/doc/${PORTNAME}
+.endif
+PORTNAME:= ${PORTNAME}-reference
+.if defined(LATEST_LINK)
+LATEST_LINK:= ${LATEST_LINK}-reference
+.endif
+
+COMMENT= Programming reference for ${REFERENCE_PORT}
+
+DESCR= ${WRKDIR}/pkg-descr
+MD5_FILE= ${PARENTDIR}/distinfo
+
+REFERENCE_SRC?= ${WRKSRC}/docs/reference
+BOOKS?= .
+
+PORTDOCS= *
+
+.if !target(do-build)
+do-build:
+ @${DO_NADA}
+.endif
+
+pre-install: gnome-reference-pre-install
+
+gnome-reference-pre-install:
+ @${ECHO_CMD} "This port contains the programming reference for ${REFERENCE_PORT}." > ${DESCR}
+ @${ECHO_CMD} "" >> ${DESCR}
+ @${GREP} "^WWW:" ${PARENTDIR}/pkg-descr >> ${DESCR}
+
+.if !target(do-install)
+do-install:
+. if !defined(NOPORTDOCS)
+. for d in ${BOOKS}
+ ${MKDIR} ${DOCSDIR}/${d}
+ cd ${REFERENCE_SRC}/${d}/html && \
+ ${FIND} * -type d ! -empty -exec ${MKDIR} "${DOCSDIR}/${d}/{}" \; && \
+ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/${d}/{}" \;
+. endfor
+. endif
+.endif
+
+.include <bsd.port.mk>