mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# New ports collection makefile for: shared-mime-info
|
|
# Date created: 31 May 2002
|
|
# Whom: olgeni@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
# $MCom: ports/misc/shared-mime-info/Makefile,v 1.16 2009/11/28 05:59:02 mezz Exp $
|
|
#
|
|
|
|
PORTNAME= shared-mime-info
|
|
PORTVERSION= 0.90
|
|
CATEGORIES= misc gnome
|
|
MASTER_SITES= http://people.freedesktop.org/~hadess/
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= A MIME type database from the FreeDesktop project
|
|
|
|
USE_BZIP2= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GETTEXT= yes
|
|
USE_GMAKE= yes
|
|
USE_GNOME= glib20 libxml2 intltool gnomehack intlhack
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
MAN1= update-mime-database.1
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
MIMEDIRS= ${LOCALBASE}/share/mime \
|
|
${PREFIX}/share/mime
|
|
MIMESUBDIRS= application audio image inode message model multipart \
|
|
packages text video x-epoc x-content
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%MIMEDIRS%%|${MIMEDIRS}|g' \
|
|
${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
${WRKSRC}/update-mime-database.c
|
|
|
|
post-install:
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
|
|
s|%%MIMEDIRS%%|${MIMEDIRS}|' \
|
|
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
|
|
|
|
.include <bsd.port.mk>
|