aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/icoconvert/Makefile
blob: 60eacd94309f56286186a14f560adf2fda467b2c (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
# New ports collection makefile for:    icoconvert
# Date created:             Apr 30 2004
# Whom:                 Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD$
#

PORTNAME=   icoconvert
PORTVERSION=    2.0
CATEGORIES= graphics
MASTER_SITES=   http://www.mox.net/downloads/ \
        http://www.xunix.org/~flz/distfiles/

MAINTAINER= flz@FreeBSD.org
COMMENT=    A small utility to convert Windows icon files into .xpm and .png files

LIB_DEPENDS=    gd.4:${PORTSDIR}/graphics/gd

USE_REINPLACE=  yes

PLIST_FILES=    bin/icoconvert

post-patch:
    @${REINPLACE_CMD} -e 's|^icoconvert|all|' -e 's|^\(FLAGS=\)|\1-I${LOCALBASE}/include |' \
        -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/icoconvert ${PREFIX}/bin

.include <bsd.port.mk>