summaryrefslogtreecommitdiffstats
path: root/graphics/bmp2html/Makefile
blob: 7f0d5cdb3a4fae19ef97e85601aa1bcfad064cf5 (plain)
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:	bmp2html
# Date created:				10 Aug 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	bmp2html
PORTVERSION=	0.1
CATEGORIES=	graphics
MASTER_SITES=	http://critical.ch/distfiles/
MASTER_SITES+=	http://www.dasfisk.dk/bmp2html/
DISTNAME=	${PORTNAME}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	A bmp to html converter

USE_SDL=	yes

LDFLAGS+=	-L${LOCALBASE}/lib
SDL_FLAGS=	-I${LOCALBASE}/include/SDL11
EXTRA_LDFLAGS=	-lSDL-1.1 -pthread
DEFINES=	-D_REENTRANT

PLIST_FILES=	bin/bmp2html

post-patch:
	@${RM} ${WRKSRC}/${PORTNAME}

do-build:
	${CC} ${CFLAGS} ${LDFLAGS} ${SDL_FLAGS} ${DEFINES} -c \
		-o ${WRKSRC}/${PORTNAME}.o ${WRKSRC}/${PORTNAME}.c
	${CC} ${CFLAGS} ${LDFLAGS} ${SDL_FLAGS} ${EXTRA_LDFLAGS} \
		-o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.o

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud