1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Cleanup Makefiles to allow further work on these ports.

This commit is contained in:
Alexey Dokuchaev 2014-08-15 09:10:16 +00:00
parent d0df74a655
commit d40c727fef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364951
2 changed files with 22 additions and 27 deletions

View File

@ -14,30 +14,29 @@ COMMENT= OpenGL interface for Objective Caml
LICENSE= BSD3CLAUSE
WRKSRC= ${WRKDIR}/lablGL
USES= gmake
CONFLICTS= ocaml-notk-[0-9]* ocaml-nox11-[0-9]*
USES= gmake tk:84,85
USE_XORG= x11 xext xmu
USE_GL= glut
USE_OCAML= yes
USE_OCAML_WASH= yes
ALL_TARGET= all opt
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= THREADS
THREADS_DESC= Threaded Tcl/Tk (must match lang/ocaml)
OPTIONS_DEFAULT= THREADS
PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
WRKSRC= ${WRKDIR}/lablGL
DOCSDIR= ${PREFIX}/share/doc/ocaml/lablgl
EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/lablgl
CONFLICTS= ocaml-notk-[0-9]* ocaml-nox11-[0-9]*
PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
OPTIONS_DEFINE= THREADS DOCS
OPTIONS_DEFAULT= THREADS
THREADS_DESC= Threaded Tcl/Tk (must match lang/ocaml)
.include <bsd.port.options.mk>
USES+= tk:84,85
.if ${PORT_OPTIONS:MTHREADS}
THR_CPP= ${PTHREAD_CFLAGS}
THR_LD= ${PTHREAD_LIBS}
@ -74,13 +73,11 @@ pre-install:
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/lablglut
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/togl
@(cd ${WRKSRC}/LablGlut/examples && ${COPYTREE_SHARE} \* \
@(cd ${WRKSRC}/LablGlut/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR}/lablglut '! -name Makefile')
@(cd ${WRKSRC}/Togl/examples && ${COPYTREE_SHARE} \* \
@(cd ${WRKSRC}/Togl/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR}/togl '! -name Makefile')
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# Created by: Rene Ladan
# Created by: Rene Ladan <rene@FreeBSD.org>
# $FreeBSD$
PORTNAME= lablgtk2
@ -22,9 +22,10 @@ USE_OCAMLFIND_PLIST= yes
USE_OCAML_LDCONFIG= yes
USE_OCAML_WASH= yes
OPTIONS_DEFINE= GLADE GNOMECANVAS GNOMEUI GTKGLAREA GTKSOURCEVIEW2 GTKSPELL \
LIBRSVG2
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
OPTIONS_DEFINE= GLADE GNOMECANVAS GNOMEUI GTKGLAREA GTKSOURCEVIEW2 \
GTKSPELL LIBRSVG2 DOCS EXAMPLES
_OPTIONS_DEFAULT= GLADE GNOMECANVAS GNOMEUI GTKGLAREA GTKSOURCEVIEW2 \
GTKSPELL LIBRSVG2
GNOMECANVAS_DESC= GnomeCanvas support
GNOMEUI_DESC= GNOME 2 UI support
@ -132,14 +133,11 @@ post-patch:
${WRKSRC}/src/Makefile
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/examples ; ${COPYTREE_SHARE} \
"*.ml *.png *.rgb *.xpm text ${EXAMPLES_SUBDIRS}" ${STAGEDIR}${EXAMPLESDIR}
.endif
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \
"*.ml *.png *.rgb *.xpm text ${EXAMPLES_SUBDIRS}" \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>