summaryrefslogtreecommitdiff
path: root/devel/moonshine/Makefile
blob: 76c5424effd8bcf62a6338ed4ec52252574b8d08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:	moonshine
# Date created:				26 April 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	moonshine
PORTVERSION=	1.1.3
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.suite3220.com/pub/Moonshine/1.1/src/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	sobomax@FreeBSD.org

USE_QT2=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_XLIB=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${X11BASE}/include

CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"

.include <bsd.port.pre.mk>

.if ${MACHINE_ARCH} == "alpha"
CFLAGS+=	-O0
.endif

pre-configure:
	@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
		's|\$$\{prefix\}/moonshine|\$$\{prefix\}/share/moonshine| ; \
		 s|\@INSTBIN\@|${PREFIX}/bin| ; s|moc -o|\$$\(MOC\) -o|'
	@${PERL} -pi -e 's|/usr/share/moonshine|${PREFIX}/share/moonshine|' \
		${WRKSRC}/include/tags.h

.include <bsd.port.post.mk>