Lines 28-36
Link Here
|
28 |
|
28 |
|
29 |
MAN1= gmencoder.1 |
29 |
MAN1= gmencoder.1 |
30 |
|
30 |
|
|
|
31 |
.include <bsd.port.pre.mk> |
32 |
|
33 |
.if defined(WITH_DVD_DEVICE) |
34 |
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} |
35 |
.else |
36 |
.if ${OSVERSION} < 500000 |
37 |
DEFAULT_DVD_DEVICE=/dev/acd0c |
38 |
.else |
39 |
DEFAULT_DVD_DEVICE=/dev/acd0 |
40 |
.endif |
41 |
.endif |
42 |
|
43 |
pre-everything:: |
44 |
.if !defined(WITH_DVD_DEVICE) |
45 |
@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}" |
46 |
@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default" |
47 |
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'" |
48 |
.endif |
49 |
|
31 |
post-patch: |
50 |
post-patch: |
32 |
@${REINPLACE_CMD} -e 's|-O4||; s|type -path|which|' \ |
51 |
@${REINPLACE_CMD} -e 's|-O4||; s|type -path|which|' \ |
33 |
${WRKSRC}/configure |
52 |
${WRKSRC}/configure |
|
|
53 |
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ |
54 |
${WRKSRC}/src/main.c ${WRKSRC}/src/interface.c |
34 |
|
55 |
|
35 |
post-install: |
56 |
post-install: |
36 |
.if !defined(NOPORTDOCS) |
57 |
.if !defined(NOPORTDOCS) |
Lines 41-44
Link Here
|
41 |
.endif |
62 |
.endif |
42 |
${INSTALL_MAN} ${WRKSRC}/man/gmencoder.1 ${MANPREFIX}/man/man1 |
63 |
${INSTALL_MAN} ${WRKSRC}/man/gmencoder.1 ${MANPREFIX}/man/man1 |
43 |
|
64 |
|
44 |
.include <bsd.port.mk> |
65 |
.include <bsd.port.post.mk> |