mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
41 lines
938 B
Makefile
41 lines
938 B
Makefile
# New ports collection makefile for: bmp2html
|
|
# Date created: 10 Aug 2005
|
|
# Whom: Emanuel Haupt <ehaupt@critical.ch>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bmp2html
|
|
PORTVERSION= 0.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://critical.ch/distfiles/ \
|
|
http://energy.critical.ch/distfiles/
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= A 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} ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|