aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/a2png/Makefile
blob: 96275795749a116b79fe8c7363349236ac0f8f69 (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=   a2png
PORTVERSION=    0.1.5
PORTREVISION=   8
CATEGORIES= graphics
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Converts plain ASCII text into PNG bitmap images

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgd.so:graphics/gd

BROKEN_armv6 =      fails to build: parse.c:(.text+0x174): undefined reference to 'fgettok'
BROKEN_armv7 =      fails to build: parse.c:(.text+0x174): undefined reference to 'fgettok'

USES=       tar:bzip2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-gd
CFLAGS+=    -DDEFAULT_FONTPATH='\"${FONTROOTDIR}/TTF:${FONTROOTDIR}/Type1:${FONTROOTDIR}\"'
PLIST_FILES=    bin/${PORTNAME} man/man1/${PORTNAME}.1.gz

FONTROOTDIR?=   ${LOCALBASE}/share/fonts

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

.include <bsd.port.mk>