Lines 6-44
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mtoolsfm |
8 |
PORTNAME= mtoolsfm |
9 |
PORTVERSION= 1.9.3 |
9 |
PORTVERSION= 1.9.5 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= x11-fm |
10 |
CATEGORIES= x11-fm |
12 |
MASTER_SITES= http://www.core-coutainville.org/MToolsFM/archive/SOURCES/ |
11 |
MASTER_SITES= SF |
13 |
DISTNAME= MToolsFM-${PORTVERSION:R}-${PORTVERSION:E} |
12 |
DISTNAME= MToolsFM-${PORTVERSION} |
14 |
|
13 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= A graphical frontend to mtools |
15 |
COMMENT= A graphical frontend to mtools |
17 |
|
16 |
|
18 |
RUN_DEPENDS= mtools:${PORTSDIR}/emulators/mtools |
17 |
RUN_DEPENDS= mtools:${PORTSDIR}/emulators/mtools |
19 |
|
18 |
|
20 |
USE_GNOME= gtk12 |
19 |
USE_GNOME= gnomehack gnometarget gtk12 |
|
|
20 |
USE_GETTEXT= yes |
21 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
22 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
23 |
LIBS="-L${LOCALBASE}/lib" |
23 |
LDFLAGS="-L${LOCALBASE}/lib" |
24 |
CONFIGURE_ARGS= --with-conffile="${PREFIX}/etc/mtoolsfm.conf" |
24 |
CONFIGURE_ARGS= --with-conffile="${PREFIX}/etc/mtoolsfm.conf" |
25 |
|
25 |
|
26 |
MAN1= mtoolsfm.1 |
26 |
MAN1= mtoolsfm.1 |
27 |
|
27 |
|
28 |
post-patch: |
28 |
post-patch: |
29 |
@${REINPLACE_CMD} -e 's|MToolsFM|mtoolsfm|g ; \ |
29 |
@${REINPLACE_CMD} -e 's|MToolsFM|mtoolsfm|g' ${WRKSRC}/configure |
30 |
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure |
|
|
31 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ |
32 |
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/MToolsFM.1 |
33 |
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \ |
30 |
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \ |
34 |
's|MToolsFM|mtoolsfm|g' |
31 |
's|MToolsFM|mtoolsfm|g' |
35 |
.for file in src/mtoolsfm.h po/de.po po/fr.po |
32 |
@cd ${WRKSRC} && ${SED} -e \ |
36 |
@${MV} -f ${WRKSRC}/${file} ${WRKSRC}/${file}.preedit |
33 |
's|MToolsFM|mtoolsfm|g ; \ |
37 |
@${CAT} ${WRKSRC}/${file}.preedit | \ |
34 |
s| /etc| ${PREFIX}/etc|g ; \ |
38 |
${TR} '\264' '\047' > ${WRKSRC}/${file} |
35 |
s|/usr/X11R6/bin|${PREFIX}/bin|g ; \ |
39 |
.endfor |
36 |
s|/usr/bin|${LOCALBASE}/bin|g ; \ |
40 |
|
37 |
s|^/etc|${PREFIX}/etc|g' < MToolsFM.1 > mtoolsfm.1 |
41 |
pre-build: |
|
|
42 |
@${LN} -sf ${WRKSRC}/MToolsFM.1 ${WRKSRC}/mtoolsfm.1 |
43 |
|
38 |
|
44 |
.include <bsd.port.mk> |
39 |
.include <bsd.port.mk> |