move pre-configure to Makefile.inc

This commit is contained in:
jasper 2017-08-09 15:35:51 +00:00
parent 998194d358
commit 22d475bf12
3 changed files with 10 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.1 2017/08/09 14:40:30 jasper Exp $
# $OpenBSD: Makefile.inc,v 1.2 2017/08/09 15:35:51 jasper Exp $
CATEGORIES ?= graphics/orthanc
@ -14,5 +14,11 @@ DISTNAME ?= Orthanc${PLUGIN}-${VERSION}
PKGNAME ?= orthanc-plugin-${PLUGIN:L}-${VERSION}
HOMEPAGE ?= http://www.orthanc-server.com/static.php?page=plugin-${PLUGIN:L}
MASTER_SITES ?= http://www.orthanc-server.com/downloads/get.php\?path=/plugin-${PLUGIN:L}/
MASTER_SITES ?=
http://www.orthanc-server.com/downloads/get.php\?path=/plugin-${PLUGIN:L}/
pre-configure:
sed -i 's,share/orthanc/plugins,libexec/orthanc/plugins,g' \
${WRKSRC}/CMakeLists.txt
.endif

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/08/09 14:41:54 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2017/08/09 15:35:51 jasper Exp $
COMMENT = PostgreSQL backend for Orthanc
@ -25,8 +25,4 @@ CONFIGURE_ARGS += -DCMAKE_C_FLAGS="-I${LOCALBASE}/include -pthread" \
CONFIGURE_ARGS += -DBUILD_UNIT_TESTS=Off
NO_TEST = Yes
pre-configure:
sed -i 's,share/orthanc/plugins,libexec/orthanc/plugins,g' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/08/09 14:41:22 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2017/08/09 15:35:51 jasper Exp $
COMMENT = web viewer plugin for Orthanc
@ -42,8 +42,4 @@ post-extract:
cp ${DISTDIR}/$p ${WRKSRC}/ThirdPartyDownloads/
.endfor
pre-configure:
sed -i 's,share/orthanc/plugins,libexec/orthanc/plugins,g' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>