Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2019 10:26:57 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492298 - head/graphics/bmp2html
Message-ID:  <201902061026.x16AQvZA062046@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902061026.x16AQvZA062046>