freebsd-ports/graphics/bmp2html/Makefile
Emanuel Haupt a9530f7b9f - Add LICENSE
- Take compile/link flags from sdl_config, instead of hardcoding them, simplify
  the port
- Remove bundled binary earlier, in post-extract

PR:		235525
Submitted by:	amdmi3
2019-02-06 10:26:57 +00:00

32 lines
655 B
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= bmp2html
PORTVERSION= 0.1
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= LOCAL/ehaupt
DISTNAME= ${PORTNAME}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= BMP to HTML converter
LICENSE= PD
USE_SDL= sdl
PLIST_FILES= bin/bmp2html
post-extract:
@${RM} ${WRKSRC}/${PORTNAME}
do-build:
${CC} ${CFLAGS} `${SDL_CONFIG} --cflags` -c \
-o ${WRKSRC}/${PORTNAME}.o ${WRKSRC}/${PORTNAME}.c
${CC} ${LDFLAGS} `${SDL_CONFIG} --libs` \
-o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.o
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>