aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/qiv/Makefile
blob: 8b500a87320f1ad9b0b7404001bd1959a56fe631 (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
# New ports collection makefile for:    qiv
# Date created:     25 December 1998
# Whom:         Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#

PORTNAME=   qiv
PORTVERSION=    1.5
CATEGORIES= graphics
MASTER_SITES=   http://www.klografx.net/qiv/download/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX=   .tgz

MAINTAINER= trevor@FreeBSD.org

USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_IMLIB=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

MAN1=       qiv.1

do-configure:
    @ ${MV} ${WRKSRC}/qiv.1 ${WRKSRC}/qiv.1.pre_sed
    @ ${SED} -e 's#\/usr\/bin#${PREFIX}/bin#g' \
        ${WRKSRC}/qiv.1.pre_sed > ${WRKSRC}/qiv.1
    @ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
    @ ${SED} -e 's#\/usr\/local#${PREFIX}#' \
             -e 's#RANDOM GETOPT_LONG#RANDOM#' \
             -e 's#gcc#${CC}#' \
             -e 's#-O2#${CFLAGS}#' \
        ${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qiv ${PREFIX}/bin/
    ${INSTALL_MAN} ${WRKSRC}/qiv.1 ${PREFIX}/man/man1/

.include <bsd.port.mk>