# New ports collection makefile for: metaocaml # Date created: 16 June 2005 # Whom: Geoffrey Mainland # # $FreeBSD$ # PORTNAME= metaocaml PORTVERSION= 3.09.a30 CATEGORIES= lang MASTER_SITES= http://www.metaocaml.org/dist/old/ DISTNAME= MetaOCaml_309_alpha_030 MAINTAINER= mainland@apeiron.net COMMENT= The MetaOCaml compiler and programming environment ONLY_FOR_ARCHS= i386 amd64 # feel free to test on other archs and send a PR REINPLACE_ARGS= -i "" HAS_CONFIGURE= yes CONFIGURE_ARGS= -prefix ${PREFIX} -cc "${CC} ${CFLAGS}" -with-pthread \ -libdir ${PREFIX}/lib/metaocaml/lib \ -bindir ${PREFIX}/lib/metaocaml/bin \ -mandir ${DATADIR}/man USE_GMAKE= yes ALL_TARGET= world opt metaocamlopt opt.opt STRIP= SUB_FILES= pkg-message SUB_LIST= PORTNAME="${PORTNAME}" MAN1= ocamlcp.1 ocamldep.1 ocamldebug.1 ocamldoc.1 ocamlopt.1 \ ocamlrun.1 ocamlyacc.1 ocamlmktop.1 ocaml.1 ocamlc.1 \ ocamllex.1 ocamlprof.1 camlp4.1 MANN= Arg.n Array.n ArrayLabels.n Bigarray.Array1.n \ Bigarray.Array2.n Bigarray.Array3.n Bigarray.Genarray.n \ Bigarray.n Buffer.n Callback.n CamlinternalOO.n \ CamlinternalMod.n Char.n Complex.n Digest.n Filename.n \ Format.n Gc.n Genlex.n Hashtbl.HashedType.n Hashtbl.Make.n \ Hashtbl.S.n Hashtbl.n Int32.n Int64.n Lazy.n Lexing.n List.n \ ListLabels.n Map.Make.n Map.OrderedType.n Map.S.n Map.n \ Marshal.n MoreLabels.Hashtbl.HashedType.n \ MoreLabels.Hashtbl.Make.n MoreLabels.Hashtbl.S.n \ MoreLabels.Hashtbl.n MoreLabels.Map.Make.n \ MoreLabels.Map.OrderedType.n MoreLabels.Map.S.n \ MoreLabels.Map.n MoreLabels.Set.Make.n \ MoreLabels.Set.OrderedType.n MoreLabels.Set.S.n \ MoreLabels.Set.n MoreLabels.n Nativeint.n Num.n Obj.n Oo.n \ Parsing.n Pervasives.LargeFile.n Pervasives.n Printexc.n \ Printf.n Queue.n Random.n Random.State.n Scanf.Scanning.n \ Scanf.n Set.Make.n Set.OrderedType.n Set.S.n Set.n Sort.n \ Stack.n StdLabels.Array.n StdLabels.List.n StdLabels.String.n \ StdLabels.n Str.n Stream.n String.n StringLabels.n Sys.n \ Unix.LargeFile.n Unix.n Weak.Make.n Weak.S.n Weak.n MLINKS= ocamlc.1 ocamlc.opt.1 ocamlopt.1 ocamlopt.opt.1 \ camlp4.1 camlp4o.1 camlp4.1 camlp4r.1 camlp4.1 mkcamlp4.1 \ camlp4.1 camlp4o.opt.1 camlp4.1 camlp4r.opt.1 \ camlp4.1 ocpp.1 OPTIONS= X11 "build the X11 graphics library" on \ LABLTK "build the LablTk library" on PLISTDIR= ${PREFIX}/lib/metaocaml \ ${PREFIX}/share/examples/metaocaml \ ${PREFIX}/bin/metaocaml \ ${PREFIX}/bin/metaocamlc \ ${PREFIX}/bin/metaocamlopt .include # Have to set this here and can't use ${DATADIR} or MLINKS get screwed up MANPREFIX= ${TARGETDIR}/share/metaocaml .if defined(WITH_X11) USE_XLIB= yes CONFIGURE_ARGS+=-x11include ${X11BASE}/include -x11lib ${X11BASE}/lib PLIST_SUB+= X11="" .else PLIST_SUB+= X11="@comment " .endif # We would like to use bsd.tcl.mk here, but we can't USE_TCL after including # bsd.port.pre.mk and we can't test WITH_LABLTK before including bsd.port.pre.mk .if defined(WITH_LABLTK) LIB_DEPENDS+= tk84.1:${PORTSDIR}/x11-toolkits/tk84 CONFIGURE_ARGS+=-tkdefs "-I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4" CONFIGURE_ARGS+=-tklibs "-L${LOCALBASE}/lib" PLIST_SUB+= LABLTK="" .if defined(WITHOUT_X11) CONFIGURE_ARGS+=-tk-no-x11 .endif .else CONFIGURE_ARGS+=-no-tk PLIST_SUB+= LABLTK="@comment " .endif post-patch: @${REINPLACE_CMD} -e \ "s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|; \ s|-pthread|${PTHREAD_LIBS}|; \ s|aspp='gcc'|aspp='${CC}'|" ${WRKSRC}/configure @${FIND} ${WRKSRC} -type f -name Makefile -exec ${REINPLACE_CMD} -Ee \ 's,^([[:space:]]*(then)?[[:space:]]*)cp([[:space:]]+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \3,; \ s,^([[:space:]]*(then)?[[:space:]]*)cp([[:space:]]+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,; \ s,^([[:space:]]*(then)?[[:space:]]*)cp([[:space:]]+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,; \ s,^([[:space:]]*(then)?[[:space:]]*)\$$\(CP\)([[:space:]]+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \3,; \ s,^([[:space:]]*(then)?[[:space:]]*)\$$\(CP\)([[:space:]]+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,; \ s,^([[:space:]]*(then)?[[:space:]]*)(\$$\(CP\)|cp)([[:space:]]+.*(MANDIR|MANODIR|MANEXT)),\1\$${BSD_INSTALL_MAN} \4,; \ s,([[:space:]]*then[[:space:]]*)cp([[:space:]]+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \2,; \ s,([[:space:]]*then[[:space:]]*)cp([[:space:]]+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \2,; \ s,([[:space:]]*(do|then)[[:space:]]*)(\$$\(CP\)|cp)([[:space:]]+.*(MANDIR|MANODIR|MANEXT)),\1\$${BSD_INSTALL_MAN} \4,; \ s,-O,,' {} \; post-install: .if defined(WITH_LABLTK) . for d in camltk labltk ${MKDIR} ${EXAMPLESDIR}/${d} ${CP} -R ${WRKSRC}/otherlibs/labltk/examples_${d}/* ${EXAMPLESDIR}/${d} . endfor ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}/* ${FIND} ${EXAMPLESDIR}/* -type f -exec ${CHMOD} ${SHAREMODE} {} \; ${FIND} ${EXAMPLESDIR}/* -type d -exec ${CHMOD} ${BINMODE} {} \; .endif ${LN} -sf ${PREFIX}/lib/metaocaml/bin/metaocaml ${PREFIX}/bin/metaocaml ${LN} -sf ${PREFIX}/lib/metaocaml/bin/metaocamlopt ${PREFIX}/bin/metaocamlopt ${LN} -sf ${PREFIX}/lib/metaocaml/bin/metaocamlc ${PREFIX}/bin/metaocamlc .for p in camlp4o.opt camlp4r.opt ocamlc.opt ocamldep.opt ocamldoc.opt \ ocamllex.opt ocamlopt.opt ocamlrun ocamlyacc ${STRIP_CMD} ${PREFIX}/lib/metaocaml/bin/${p} .endfor ${CHMOD} u+w ${PREFIX}/lib/metaocaml/lib/ld.conf .for dir in ${PLISTDIR} @${FIND} ${dir} ! -type d | \ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} @${FIND} ${dir} -type d | ${SORT} -r | \ ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} .endfor echo "@exec mkdir -p %D/lib/metaocaml/lib/ocamldoc/custom" >> ${TMPPLIST} echo "@dirrm ${MANPREFIX:S|${PREFIX}/||}/man/man1" >> ${TMPPLIST} echo "@dirrm ${MANPREFIX:S|${PREFIX}/||}/man/mann" >> ${TMPPLIST} echo "@dirrm ${MANPREFIX:S|${PREFIX}/||}/man" >> ${TMPPLIST} echo "@dirrm ${MANPREFIX:S|${PREFIX}/||}" >> ${TMPPLIST} @${CAT} ${PKGMESSAGE} .include ibsx?h=gnome-3.24'>stats
path: root/x11/libsx
Commit message (Expand)AuthorAgeFilesLines
* Fix build with clangarved2011-07-143-0/+33
* - Get Rid MD5 supportmiwi2011-03-191-1/+0
* For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-211-3/+0
* Convert most of remaining ports that depend on xorg-libraries toamdmi32009-06-091-2/+3
* - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-202-5/+5
* - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-261-2/+2
* - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1
* - Remove support for a.out format and PORTOBJFORMAT variable from individualpav2007-01-301-4/+1
* - Add SHA256pav2005-11-261-0/+1
* Remove XAWVER from Xaw3d LIB_DEPENDS re. Xaw3d will be depended upon justlesi2005-04-101-1/+1
* SIZEify.trevor2004-01-301-0/+1
* De-pkg-comment.knu2003-02-212-1/+1
* o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-2/+1
* Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2
* - PORTDOCS policepat2001-12-242-20/+20
* Remove giffunip@asme.org as the maintainer: he no longer has the abilitykris2001-08-241-1/+1
* Style fixes for ports/x11.olgeni2001-02-061-1/+1
* Enforce X(1) recommendation about X11 naming in some pkg-{descr,comment}olgeni2001-02-011-1/+1
* Use ${XAWVER} for Xaw3d's shlib version number in LIB_DEPENDS so these portsasami2000-09-061-1/+1
* Update to use PORTNAME/PORTVERSIONcpiazza2000-04-141-3/+3
* $Id$ -> $FreeBSD$peter1999-08-311-1/+1
* #4/4 enforcing Caps, no periodhoek1999-06-271-1/+1
* Fix for ELF build and remove empty directories on deinstall.steve1998-09-272-64/+43
* Remove regexp support for Xaw3d since it can now be built insteve1998-09-211-2/+2
* Fix up dependencies for ports that moved into the x11-toolkits category.asami1998-08-081-2/+2
* Rename all USE_X11 to USE_X_PREFIX. Requires 1.279 (3.0-current) orasami1998-08-051-2/+2
* Add dependency on Xaw3d and minor cleanup prompted by portlint.tg1997-09-153-3/+4