svn commit: r492298 - head/graphics/bmp2html
Emanuel Haupt
ehaupt at FreeBSD.org
Wed Feb 6 10:27:00 UTC 2019
Author: ehaupt
Date: Wed Feb 6 10:26:57 2019
New Revision: 492298
URL: https://svnweb.freebsd.org/changeset/ports/492298
Log:
- 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
Modified:
head/graphics/bmp2html/Makefile
Modified: head/graphics/bmp2html/Makefile
==============================================================================
--- head/graphics/bmp2html/Makefile Wed Feb 6 10:03:01 2019 (r492297)
+++ head/graphics/bmp2html/Makefile Wed Feb 6 10:26:57 2019 (r492298)
@@ -11,22 +11,19 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ehaupt at FreeBSD.org
COMMENT= BMP to HTML converter
+LICENSE= PD
+
USE_SDL= sdl
-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:
+post-extract:
@${RM} ${WRKSRC}/${PORTNAME}
do-build:
- ${CC} ${CFLAGS} ${LDFLAGS} ${SDL_FLAGS} ${DEFINES} -c \
+ ${CC} ${CFLAGS} `${SDL_CONFIG} --cflags` -c \
-o ${WRKSRC}/${PORTNAME}.o ${WRKSRC}/${PORTNAME}.c
- ${CC} ${CFLAGS} ${LDFLAGS} ${SDL_FLAGS} ${EXTRA_LDFLAGS} \
+ ${CC} ${LDFLAGS} `${SDL_CONFIG} --libs` \
-o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.o
do-install:
More information about the svn-ports-head
mailing list