aboutsummaryrefslogtreecommitdiffstats
path: root/editors/leafpad/Makefile
blob: 361ac1a6eb06dd3b5461d6e458150084c2bb147a (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
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:    leafpad
# Date created:     2004-10-18
# Whom:         Michael Johnson <ahze@ahze.net>
#
# $FreeBSD$
#

PORTNAME=   leafpad
PORTVERSION=    0.7.9
PORTREVISION=   2
CATEGORIES= editors
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= radek@raadradd.com
COMMENT=    Light-weight GTK+ editor similar to notepad.exe

USE_GNOME=  gtk20 gnomehier desktopfileutils
USE_REINPLACE=  yes
USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" \
        PTHREAD_LIB="${PTHREAD_LIBS}"

PORTDOCS=   AUTHORS COPYING ChangeLog INSTALL README

.if defined (WITH_NEW_SELECTOR)
EXTRA_PATCHES=  ${FILESDIR}/extra-new-selector.patch
.endif

pre-everything::
.if !defined(WITH_NEW_SELECTOR)
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You may choose to compile with unsupported patch"
    @${ECHO_MSG} "that lets leafpad use the new GTK file selector."
    @${ECHO_MSG} "Define:"
    @${ECHO_MSG} ""
    @${ECHO_MSG} "  WITH_NEW_SELECTOR=yes"
    @${ECHO_MSG} ""
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/pixmaps|/gnome/pixmaps|; \
        s|/applications|/gnome/applications|' \
        ${WRKSRC}/Makefile.in ${WRKSRC}/src/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
    -@update-desktop-database

.include <bsd.port.mk>