1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/graphics/bmp2html/Makefile
2013-10-24 15:11:40 +00:00

36 lines
806 B
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= bmp2html
PORTVERSION= 0.1
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= CRITICAL
DISTNAME= ${PORTNAME}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= BMP to HTML converter
USE_SDL= yes
LDFLAGS+= -L${LOCALBASE}/lib
SDL_FLAGS= -I${LOCALBASE}/include/SDL -I${LOCALBASE}/include
EXTRA_LDFLAGS= -lSDL -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} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>