aboutsummaryrefslogblamecommitdiff
path: root/news/sn/Makefile
blob: 2030e3e6ab3f67971e22398af1369a5181c38948 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                              
           

                  
                     
                 
                    
                                                          
                                                              
                                                        



                                                         

                     

                                            

                                                        
 
                                                      


                                                          

                             

                    
                                                  
           

                                                            
                                                                      

                                                     
                                          
 
            
                                            

             

                                                                         

                      
# Created by: Andreas Fehlner <fehlner@gmx.de>
# $FreeBSD$

PORTNAME=	sn
PORTVERSION=	0.3.8
PORTREVISION=	2
CATEGORIES=	news
MASTER_SITES=	http://www.infa.abo.fi/~patrik/sn/files/ \
		http://home.arcor.de/teambushido/fbsd_ports/ \
		http://home.arcor.de/fehlner/fbsd_ports/

MAINTAINER=	fehlner@gmx.de
COMMENT=	Small news system for small sites serving

LICENSE=	GPLv2

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash

USES=		gmake tar:bzip2
MAKE_ARGS+=	PREFIX="${PREFIX}" LD="${CC}" CC="${CC}"

PORTDOCS=	README CHANGES FAQ INSTALL INTERNALS \
		THANKS TODO INSTALL.notes INSTALL.notes2 \
		INSTALL.run INSTALL.upgrade

INSTALL_TARGET=	strip install

OPTIONS_DEFINE=	DOCS

# Try to fix parallel builds (-jX); respect CFLAGS
post-patch:
	${REINPLACE_CMD} -e 's|sn\.a$$|& lib/libstuff.a| ; \
		s|snlockf\.o$$|& lib/libstuff.a| ; \
		s|-g -Wall -pedantic -O|${CFLAGS} -Wall -pedantic| ; \
		s|strip |${STRIP_CMD} | ; \
		s|/bin/bash|${LOCALBASE}/bin/bash|' \
			${WRKSRC}/Makefile

pre-install:
	@${MKDIR} ${STAGEDIR}/var/spool/news

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>