aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-03-19 17:01:57 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-03-19 17:01:57 +0800
commit8d93b9546f45a1f8f13c1f674b44a4f2246b4db0 (patch)
treefe5635c13b12a3cc5adb19fb1fceda6b96ba28a0
parent879a39010c5bf81cc14692243f3ba1de9ab6d52a (diff)
downloadfreebsd-ports-gnome-8d93b9546f45a1f8f13c1f674b44a4f2246b4db0.tar.gz
freebsd-ports-gnome-8d93b9546f45a1f8f13c1f674b44a4f2246b4db0.tar.zst
freebsd-ports-gnome-8d93b9546f45a1f8f13c1f674b44a4f2246b4db0.zip
- Add LICENSE_FILE
- Switch to options helpers
-rw-r--r--databases/metakit/Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index 06226bf1eb74..29d2f58c3f36 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -11,6 +11,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= C++ embedded database engine with Python and Tcl support
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/../license.terms
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ../unix/configure
@@ -25,21 +26,15 @@ OPTIONS_DEFINE= PYTHON TCL DOCS
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+PYTHON_USES= python
+PYTHON_CONFIGURE_ON= --with-python=${LOCALBASE}
+PYTHON_CATEGORIES= python
-.if ${PORT_OPTIONS:MPYTHON}
-USES+= python
-CONFIGURE_ARGS+= --with-python=${LOCALBASE}
-CATEGORIES+= python
-.endif
-
-.if ${PORT_OPTIONS:MTCL}
-USES+= tcl:85
-CATEGORIES+= tcl
-CONFIGURE_ARGS+=--with-tcl=${TCL_INCLUDEDIR}
-CONFIGURE_ENV+= TCL_LIBDIR=${TCL_LIBDIR}
-PLIST_SUB+= TCL_V="${TCL_VER}"
-.endif
+TCL_USES= tcl:85
+TCL_CATEGORIES= tcl
+TCL_CONFIGURE_ON= --with-tcl=${TCL_INCLUDEDIR}
+TCL_CONFIGURE_ENV= TCL_LIBDIR=${TCL_LIBDIR}
+TCL_PLIST_SUB= TCL_V="${TCL_VER}"
pre-patch:
@${REINPLACE_CMD} -e "s=doc/==" ${WRKSRC}/../Metakit.html
@@ -61,6 +56,8 @@ post-install:
${INSTALL_PROGRAM} ${WRKSRC}/libmk4.so \
${STAGEDIR}${PREFIX}/lib/libmk4.so.0
${LN} -sf libmk4.so.0 ${STAGEDIR}${PREFIX}/lib/libmk4.so
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${TAR} -C ${WRKSRC}/../doc --exclude "*CVS" -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -