1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/crystal/Makefile
Kris Kennaway 9d4e7ac9f5 Have another crack at fixing this port. gcc 3.2 deprecated the -malign-*
options (which now generate a noisy warning), but gcc 2.95 didn't yet have
support for the replacement options (-falign=*).

As a result we have to use a conditional patch based on OSVERSION to get
the desired behaviour in both cases.  Switch to REINPLACE_CMD while I'm
here.
2002-10-06 01:12:32 +00:00

43 lines
1012 B
Makefile

# New ports collection makefile for: crystal
# Date created: Thu Feb 21 18:44:14 CST 2002
# Whom: Kyle Martin
#
# $FreeBSD$
#
PORTNAME= crystal
PORTVERSION= 0.94
CATEGORIES= devel
MASTER_SITES= ftp://sunsite.dk/projects/crystal/cs094/source/
DISTNAME= cs94_002
MAINTAINER= mkm@ieee.org
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_XLIB= yes
WRKSRC= ${WRKDIR}/CS
.include <bsd.port.pre.mk>
SUBR_PATCH= s|-O6|${PTHREAD_CFLAGS}|; s|/usr/local|${LOCALBASE}|; \
s|-lGL|-lGL ${PTHREAD_LIBS}|g; s|-lpthread|${PTHREAD_LIBS}|g; \
s|INSTALL_DIR = ${LOCALBASE}/crystal|INSTALL_DIR = ${PREFIX}/crystal|; \
s|CFLAGS.GENERAL=-Wall|CFLAGS.GENERAL=$(CXXFLAGS) -O0|
.if ( ${OSVERSION} >= 500034 )
SUBR_PATCH+= ; s|-malign|-falign|g
.endif
pre-build:
cd ${WRKSRC}; ${GMAKE} freebsd
pre-patch:
@${FIND} ${WRKSRC} -name "*.mak" | ${XARGS} ${REINPLACE_CMD} '${SUBR_PATCH}'
.include <bsd.port.post.mk>