diff options
author | pgj <pgj@FreeBSD.org> | 2010-07-30 16:48:26 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-07-30 16:48:26 +0800 |
commit | f82f7248462821b60826c8abcd60f722e4db1b9f (patch) | |
tree | 1c04e3bf5c5062a615d4dc7c84c122fac12ccfda /lang | |
parent | 85a999da2e866caa4e4141ad6f3aac195f06d4ad (diff) | |
download | freebsd-ports-gnome-f82f7248462821b60826c8abcd60f722e4db1b9f.tar.gz freebsd-ports-gnome-f82f7248462821b60826c8abcd60f722e4db1b9f.tar.zst freebsd-ports-gnome-f82f7248462821b60826c8abcd60f722e4db1b9f.zip |
- Make standalone ports run-independent of GHC
- Make install directories explicit on configuration
- Add support for redefinition of make(1) targets
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ghc/bsd.cabal.mk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lang/ghc/bsd.cabal.mk b/lang/ghc/bsd.cabal.mk index d8718833b66d..0fb9ea7c32fa 100644 --- a/lang/ghc/bsd.cabal.mk +++ b/lang/ghc/bsd.cabal.mk @@ -21,9 +21,11 @@ NOPORTDOCS= yes IGNORE+= is a documentation-only port, do not install if no documentation needed .endif -.if !defined(SLAVE) && !defined(DOCUMENTATION) +.if !defined(SLAVE) && !defined(DOCUMENTATION) && !defined(STANDALONE) BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +.elif defined(STANDALONE) +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc .endif .if defined(SLAVE) @@ -161,7 +163,7 @@ PORTDOCS+= ${xmldoc:C/^.*://g} .if defined(PORTDATA) && defined(NOPORTDATA) __handle_datadir__= --datadir='' --datasubdir='' --docdir='${DOCSDIR}' .else -__handle_datadir__= +__handle_datadir__= --datadir='${DATADIR}' --datasubdir='' --docdir='${DOCSDIR}' .endif MAN1SRC?= man/man1 @@ -173,12 +175,15 @@ CONFIGURE_ARGS+= --haddock-options=-w .SILENT: +.if !target(post-patch) post-patch: .if defined(XMLDOCS) && defined(USE_AUTOTOOLS) @${REINPLACE_CMD} -e 's|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \ ${WRKSRC}/doc/configure.ac .endif +.endif # target(post-patch) +.if !target(do-configure) do-configure: cd ${WRKSRC} && ${GHC_CMD} --make ${CABAL_SETUP} -o setup -package Cabal cd ${WRKSRC} && ${SETENV} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" \ @@ -189,7 +194,9 @@ do-configure: cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX} .endif .endif # !NOPORTDOCS +.endif # target(do-configure) +.if !target(do-build) do-build: .if !defined(DOCUMENTATION) cd ${WRKSRC} && ${SETUP_CMD} build @@ -207,7 +214,9 @@ do-build: @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html) .endif # XMLDOCS .endif # !NOPORTDOCS +.endif # target(do-build) +.if !target(do-install) do-install: .if !defined(DOCUMENTATION) cd ${WRKSRC} && ${SETUP_CMD} install @@ -245,7 +254,9 @@ do-install: .endfor .endif # XMLDOCS .endif +.endif # target(do-install) +.if !target(post-install) post-install: .if !defined(SLAVE) && !defined(STANDALONE) && !defined(DOCUMENTATION) ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old @@ -265,3 +276,4 @@ post-install: @${ECHO_MSG} "=================================================================" @${ECHO_MSG} .endif # SHOW_PKGMSG +.endif # target(post-install) |