aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gfslicer/Makefile
blob: 7265bcc44e4e02fbfba2f37bfb2d89563b66322c (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
38
39
40
41
42
43
44
# ex:ts=8
# Ports collection makefile for:    gfslicer
# Date created:         Jan 11, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   gfslicer
PORTVERSION=    1.5.4
CATEGORIES= sysutils
MASTER_SITES=   http://www.geocities.com/gfslicer/

MAINTAINER= ports@FreeBSD.org

BUILD_DEPENDS=  ${LOCALBASE}/share/automake14/automake/install-sh:${PORTSDIR}/devel/automake14

USE_X_PREFIX=   yes
USE_GNOME=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes

MAN1=       gfslicer.1
MANCOMPRESSED=  yes

post-extract:
.for file in install-sh missing mkinstalldirs
    @${LN} -sf ${LOCALBASE}/share/automake14/automake/${file} ${WRKSRC}
.endfor
    @${RM} -f ${WRKSRC}/config.cache

post-patch:
    @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
         s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
         s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
        's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
         s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'

post-install:
    ${INSTALL_MAN} ${WRKSRC}/${MAN1}.gz ${MANPREFIX}/man/man1

.include <bsd.port.mk>