freebsd-ports/lang/oo2c/Makefile
Tijl Coosemans 88c67cd38c - Update devel/libtool and devel/libltdl to version 2.4.2.418
- Patch libtool so it uses the same library version specification as on
  Darwin, Linux and other systems.  Given the version current:revision:age
  a library will be given the extension .so.major.age.revision with major
  equal to current-age.  Before libtool would use .so.current on FreeBSD.
- Patch libtoolize to remove two cases of umask 0 that caused libltdl
  files to be copied world writable (--ltdl option)
- Let USES=libtool patch this new version correctly
- Adjust all ports with USES=libtool:build and bump PORTREVISION on their
  dependent ports if a library version changed

PR:		194068
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-10-05 18:01:19 +00:00

47 lines
1 KiB
Makefile

# Created by: Oliver Breuninger <ob@seicom.NET>
# $FreeBSD$
PORTNAME= oo2c
PORTVERSION= 2.1.11
PORTREVISION= 3
CATEGORIES= lang
MASTER_SITES= SF/ooc/ooc2/${PORTVERSION}
DISTNAME= ${PORTNAME}_${BITS}-${PORTVERSION}
MAINTAINER= johans@FreeBSD.org
COMMENT= Optimizing Oberon-2 compiler of University of Kaiserslautern, Germany
LICENSE= GPLv2
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS= libtool:${PORTSDIR}/devel/libtool
LIB_DEPENDS= libgc.so:${PORTSDIR}/devel/boehm-gc
DOCSDIR= lib/${PORTNAME}
USES= gmake libtool:build tar:bzip2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_CSTD= gnu89
USE_GCC= any
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ONLY_FOR_ARCHS= i386 amd64 ia64
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} 's/dir=@/dir=$${DESTDIR}@/' \
${WRKSRC}/Makefile.config.in
@${REINPLACE_CMD} -e 's|@PERL@|${LOCALBASE}/bin/perl|' \
${WRKSRC}/rsrc/OOC/oobacktrace.in
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
BITS= 32
.else
BITS= 64
.endif
.include <bsd.port.post.mk>